| setPackage {SRPM} | R Documentation |
Set and retrieve the currently registered package
setPackage(name) currentPackage()
name |
the name of the reproducible research package to be registered or a URL to a remote zip file |
setPackage sets the currently registered package so that
functions such as code, figure, and cache know
where to look for code chunks, figures, and cache databases.
currentPackage returns the currently registered database.
If name is a URL to a remote zip file, the zip file is
downloaded and an attempt is made to extract it. Upon successful
extraction, the package is registered as if it were a local package.
For currentPackage the name of the current package is
returned.