View source: R/export.packages.R
export.packages | R Documentation |
Write the package and its version, dependency, priority and repository to a YAML file.
The user can invoke import.packages
re-install the specific versions of
the packages from the YAML file.
export.packages(file = "pvm.yml", pvm = NULL, ...)
file |
|
pvm |
a S3 object |
... |
Further arguments passed to |
Export a list of packages found via utils::installed.packages(...)
.
The repository of all packages will be set as "CRAN"
as default.
If there are some packages not on CRAN, the user should modify the
generated YAML file and edit the repository to these packages to
appropriate repository. For some non-CRAN examples:
github::wush978/pvm
bitbucket::wush978/pvm
url::https://github.com/wush978/pvm/archive/master.zip
svn::svn://github.com/wush978/pvm/trunk
git::git://github.com/wush978/pvm.git
Note that the package remotes
is required to import these non-CRAN packages.
Please check install_github
, install_bitbucket
,
install_url
, install_svn
, and install_git
for more details of the non-CRAN repository.
## Not run: library(pvm) export.packages() cat(readLines("pvm.yml"), sep = "\n") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.