setPackage {SRPM}R Documentation

Set and retrieve the currently registered package

Description

Set and retrieve the currently registered package

Usage

setPackage(name)
currentPackage()

Arguments

name the name of the reproducible research package to be registered or a URL to a remote zip file

Details

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.

Value

For currentPackage the name of the current package is returned.


[Package SRPM version 0.1-5 Index]