misc/README_Developers.md

xgxr

How to update/test/use package

Your contribution

Overview for how R packages (including this one) are organized

Functions

Functions are located in the "R" folder. When creating a new function, copy an existing one and follow the same format, with the documentation in the header When creating a new function, make sure to also add example code and some code to the vignette. * For the function to be visible after the package is loaded, make sure to have the @export line.

Datasets

Sample datasets are stored in the the data folder as ".Rda" files and also, for convenience, in the inst/extdata folder as csv files. Code for generating some of these datasets is stored in the data_create folder. And the Single Ascending Dose PKPD dataset came from [https://github.com/dpastoor/PKPDdatasets/blob/master/R/PKPDdatasets.R#L31]

Documentation

Documentation is located in the "man" folder. Do not edit this folder. Instead, edit the documentation within the function header and the documentation will be automatically created [as described here] (https://CRAN.R-project.org/web/packages/roxygen2/vignettes/roxygen2.html).

Vignettes

Vignettes are documents that show how a package can be used. They are located in the "vignettes" folder. Build them using the devtools::build_vignettes() function.

Description files

Here are some links for learning more about packages

Coveralls.io for testing

Visit coveralls.io if later, we get to the point where we want to look at unit test coverage.



Novartis/xgxr documentation built on Oct. 20, 2023, 4:35 a.m.