- how to create such a package:
this package was created following the tutorial here- install and load devtools&roxygen2 packages with command:
install.packages('devtools');
devtools::install_github('klutometis/roxygen');
library(devtools);library(roxygen2)
- change workdir to a father directory like f_wd:
setwd('f_wd')
- create the project with the fxn
create
in devtools package - add fxns files to the R subdirectory of the project
- run
document
at the root of project dir - cd to the f_wd and run
install
to test the package
- install and load devtools&roxygen2 packages with command: