Skip to content

Commit

Permalink
add helper pkg to sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
nhejazi committed Jan 7, 2022
1 parent 480ba89 commit 3e65185
Show file tree
Hide file tree
Showing 20 changed files with 1,955 additions and 1 deletion.
18 changes: 18 additions & 0 deletions sandbox/intmedlite/.Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
^.*\.Rproj$
^\.Rproj\.user$
^Makefile$
^README\.Rmd$
^README\.html$
^README-norefs\.Rmd$
^README-refs\.bib$
^README-.*\.png$
^\.travis\.yml$
^appveyor\.yml$
^codecov\.yml$
^_pkgdown\.yml$

# Extra miscellaneous support files/directories.
^cran-comments\.md$
^CONTRIBUTING\.md$
^sandbox$
^docs$
36 changes: 36 additions & 0 deletions sandbox/intmedlite/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Package: intmedlite
Title: Stochastic Causal Mediation Analysis Under Intermediate Confounding
Version: 0.0.1
Authors@R: c(
person("Nima", "Hejazi", email = "nh@nimahejazi.org",
role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0002-7127-2789")),
person("Iván", "Díaz", email = "ild2005@med.cornell.edu",
role = "aut",
comment = c(ORCID = "0000-0001-9056-2047"))
)
Description: Prototype for nonparametric causal mediation analysis with
stochastic interventions under intermediate confounding.
Depends: R (>= 3.2.0)
Imports:
stats,
methods,
tibble,
stringr,
assertthat,
data.table,
origami,
sl3
Suggests:
testthat,
knitr,
rmarkdown,
Rsolnp,
nnls,
hal9001
Remotes:
github::tlverse/sl3@master
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.0
20 changes: 20 additions & 0 deletions sandbox/intmedlite/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
check:
Rscript -e "devtools::check()"

checkfast:
Rscript -e "devtools::check(build_args = '--no-build-vignettes')"

test:
Rscript -e "devtools::test()"

doc:
Rscript -e "devtools::document()"

build:
Rscript -e "devtools::build()"

buildfast:
Rscript -e "devtools::build(vignettes = FALSE)"

style:
Rscript -e "styler::style_pkg()"
9 changes: 9 additions & 0 deletions sandbox/intmedlite/NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by roxygen2: do not edit by hand

import(data.table)
import(origami)
import(sl3)
import(stats)
import(stringr)
import(tibble)
importFrom(stats,coef)
Loading

0 comments on commit 3e65185

Please sign in to comment.