export.packages: Export Packages

View source: R/export.packages.R

export.packagesR Documentation

Export Packages

Description

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.

Usage

export.packages(file = "pvm.yml", pvm = NULL, ...)

Arguments

file

NULL, or a character string naming the file to write. If NULL, return a S3 object pvm. The default is "pvm.yml".

pvm

a S3 object pvm created by export.packages.

...

Further arguments passed to installed.packages.

Details

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

github::wush978/pvm

bitbucket

bitbucket::wush978/pvm

url

url::https://github.com/wush978/pvm/archive/master.zip

svn

svn::svn://github.com/wush978/pvm/trunk

git

git::git://github.com/wush978/pvm.git

Note that the package remotes is required to import these non-CRAN packages.

See Also

Please check install_github, install_bitbucket, install_url, install_svn, and install_git for more details of the non-CRAN repository.

Examples

## Not run: 
library(pvm)
export.packages()
cat(readLines("pvm.yml"), sep = "\n")

## End(Not run)

wush978/pvm documentation built on Oct. 30, 2022, 11:22 p.m.