Dynet allows the user to run simulations over a network, in order to create a time-series.
You can install the current version of the package from GitHub directly using (through the devtools package):
devtools::install_github("Fagan-Lab/dynet")To document the package use:
devtools::document()This will add any new function .Rd files and update existing functions.
To check that the package installs correctly and all tests are passing, use:
devtools::check(document = FALSE)Alternatively, you can use the check button on the Build tab in Rstudio.
To add a package dependency use:
usethis::use_package("package")This will correctly update the DESCRIPTION with the new dependency.
To add a test for a given function, add a corresponding test file in the tests/testthat directory. To run all the tests in the package, use:
devtools::test()This is also available as the CMD + SHIFT + t command in Rstudio.
To install package locally for development use:
devtools::load_all(".")