library_template(path, name = getOption("name"), email = getOption("email"), news = TRUE, readme = TRUE, rstudio = TRUE, gitignore = TRUE, testthat = TRUE, travis = TRUE, coverage = TRUE, github.user = getOption("github.user"), samples = TRUE)
c(first="Tyler", last="Rinker"))
). This can be set in the
user's options
in the .Rprofile; for example:
options(name = c(first="Tyler", middle = "W.", last="Rinker"))
.options
in the .Rprofile; for example:
options(email = "tyler.rinker@gmail.com")
.TRUE
a NEWS file is generated.TRUE
a README.md file is generated.TRUE
it is assumed
RStudio will be used and a xxx.proj
file is generated.TRUE
a .gitignore file is generated.TRUE
it is assumed
testthat
will be used and a test subfolder with appropriate testthat
subdirectories and files will be created.TRUE
it is assumed
Travis-CI will be used and a travis.yml
file is generated. For more on managing a travis.yml with
R see: https://github.com/craigcitro/r-travis.TRUE
it is assumed
covr will be used. This
information will be added to the travis.yml.options
in the .Rprofile; for
example:
options(github.user = "trinker")
.TRUE
a sample .R regular expression
file will be placed in the R directory. Additionally, if
testthat = TRUE
, a sample .R unit test will be placed in the
./tests/testthat directory.This function creates a package template to manage regular expressions. It utiizes a framework with defaults that expects the user to use testthat to test the library's reguar expressions.
## <strong>Not run</strong>: # library_template("DELETE_ME") # ## <strong>End(Not run)</strong>