release_package {managelocalrepo} | R Documentation |
Release a package to the local repo.
Description
This will take a package from a given location and populate it to the relevant trees in the local repo. It will create terminal directories if needed.
Usage
release_package(package_location, repo_base, type = "win", version = "all",
r_versions = c("2.15", "3.0", "3.1", "3.2"), ...)
Arguments
package_location |
the full path to the package's file. This should be the package's file name represented by a character vector of length one. |
repo_base |
the base directory of the local repository represented by a character vector of length one. |
type |
the type of package file being released. Should be
|
version |
determines which terminal directory to release the package
file to, given a value for |
r_versions |
a character vector of R versions. This is used to determine
the terminal directories when |
... |
optional arguments to pass to |
Value
No return value. Will release a package to the desired local repo's terminal directory and update the relevant index file. Otherwise will return a suitable error message.
References
Setting up a package repository
Examples
## Not run:
package_location <- file.path(".", "submissions")
package_location <- file.path(package_location, "test_package.zip")
repo_base <- file.path(".")
release_package(package_location, repo_base)
## End(Not run)