/constructnet

Network reconstruction from time-series data

Primary LanguageROtherNOASSERTION

constructnet

R build status

constructnet: Network reconstruction from 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/constructnet")

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(".")

This is also available as the CMD + SHIFT + l command in Rstudio.