Contributing to dMod2
Source:.github/CONTRIBUTING.md
As an RStudio project
Working on the package itself is easier from a checkout.
File → New Project → Version Control → Git, repository URL
https://github.com/dModverse/dMod2.-
Install the dependencies, including the ones declared under
Remotes::remotes::install_deps(dependencies = TRUE) Build → Install and Restart.
cppDE installs the same way and has to be built first: dMod2 compiles the generated model sources against the headers of cppDE.
Tests and documentation
The tests run against the installed package, in parallel with as many workers as TESTTHAT_CPUS sets:
R CMD INSTALL --no-docs .
TESTTHAT_CPUS=4 NOT_CRAN=true Rscript -e 'testthat::test_dir("tests/testthat", package = "dMod2",
load_package = "installed")'man/ and NAMESPACE are generated by roxygen2 (roxygen2::roxygenise()), README.md is knitted from README.Rmd. Edit the sources, not the generated files.
Issues
Bugs and questions go to the issue tracker, with a small model that reproduces them and the output of sessionInfo().