addLocalPackage | R Documentation |
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.
addLocalPackage(
pkgs = NULL,
pkgPath = NULL,
path = NULL,
type = "source",
Rversion = R.version,
writePACKAGES = TRUE,
deps = FALSE,
quiet = FALSE,
build = FALSE
)
pkgs |
Character vector of packages to download |
pkgPath |
Character vector of directory location containing packages to
be added. Note that |
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 |
Rversion |
Version of R (only used if
|
writePACKAGES |
If TRUE, calls |
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. |
To build a package from source and then add it, use build = TRUE
. Note that
package development libraries and the devtools
package must be installed on
your system in order to build packages.
Installs the packages and returns the new package index.
Currently, adding local packages does not check nor download their dependencies.
Alex Chubaty
## Not run:
addLocalPackage("myPackage", "path/to/my/prebuilt/package",
"path/to/my/miniCRAN/repo")
addLocalPackage("myPackage", "path/to/my/package/sourcecode",
"path/to/my/miniCRAN/repo", build = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.