Skip to content

Fagan-Lab/dynet

Repository files navigation

dynet

R build status

Dynet allows the user to run simulations over a network, in order to create a time-series.

Installation

You can install the current version of the package from GitHub directly using (through the devtools package):

devtools::install_github("Fagan-Lab/dynet")

Development

Document

To document the package use:

devtools::document()

This will add any new function .Rd files and update existing functions.

Check

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.

Adding a dependency

To add a package dependency use:

usethis::use_package("package")

This will correctly update the DESCRIPTION with the new dependency.

Adding a test

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.

Install local package

To install package locally for development use:

devtools::load_all(".")

Releases

No releases published

Packages

No packages published