ExtPackage | R Documentation |
A class for generating the skeleton of a new extension package.
This class manages the files of an extension package.
It can generate all the files of a new extension package: DESCRIPTION,
NEWS, README.md, tests, definitons.yml, etc. Optionnaly it also generates
other files like: a .travis.yml
file for Travis-CI, a Makefile for easing
development on UNIX-like platforms outside of Rstudio.
It can also upgrade files of an existing package like: definitions.yml, Makefile, .travis.yml, LICENSE, etc.
biodb::ExtGenerator
-> ExtPackage
new()
Initializer.
ExtPackage$new(...)
...
See the constructor of ExtGenerator for the parameters.
Nothing.
clone()
The objects of this class are cloneable with this method.
ExtPackage$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Generate a new package: pkgFolder <- file.path(tempfile(), 'biodbFoo') dir.create(pkgFolder, recursive=TRUE) biodb::ExtPackage$new(path=pkgFolder, dbName='foo.db', dbTitle='Foo database', rcpp=TRUE, connType='mass', entryType='txt', downloadable=TRUE, remote=TRUE)$generate()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.