Description Usage Arguments Value References Examples
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.
1 2 | release_package(package_location, repo_base, type = "win", version = "all",
r_versions = c("2.15", "3.0", "3.1", "3.2"), ...)
|
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 |
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.
Setting up a package repository
1 2 3 4 5 6 7 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.