项目作者: Fagan-Lab

项目描述 :
Network Dynamics in R
高级语言: R
项目地址: git://github.com/Fagan-Lab/dynet.git
创建时间: 2020-08-31T22:09:02Z
项目社区:https://github.com/Fagan-Lab/dynet

开源协议:Other

下载


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):

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

Development

Document

To document the package use:

  1. 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:

  1. 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:

  1. 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:

  1. devtools::test()

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

Install local package

To install package locally for development use:

  1. devtools::load_all(".")