Examine the contents of a directory specified by pkgPath for pre-built
packages matching the names specified by pkgs, and add these to the
miniCRAN repository.
Usage
addLocalPackage(
pkgs = NULL,
pkgPath = NULL,
path = NULL,
type = "source",
Rversion = R.version,
writePACKAGES = TRUE,
deps = FALSE,
quiet = FALSE,
build = FALSE
)Arguments
- pkgs
Character vector of packages to download
- pkgPath
Character vector of directory location containing packages to be added. Note that
pkgPathshould be the parent directory of the package (i.e., the package directory path is constructed fromfile.path(pkgPath, pkgs)).- path
Destination download path. This path is the root folder of your new repository.
- type
Possible values are (currently) "source", "mac.binary" and "win.binary": the binary types can be listed and downloaded but not installed on other platforms. Passed to
download.packages().- Rversion
Version of R (only used if
typeis notsource.) Defaults to R.version, but this can be specified as any of the following formats:a character string with the two digit R version, e.g. "3.1"
a list with components
majorandminorthe result of
getRversion()the result of R.version
- writePACKAGES
If TRUE, calls
write_PACKAGES()to update the repository PACKAGES file.- deps
Not used. See note.
- quiet
If TRUE, suppress status messages (if any), and the progress bar during download.
- build
Logical indicating whether packages should be build prior to adding.