guix.install {guix.install} | R Documentation |
guix.install
Description
This procedure installs a given package with Guix. If the package is available in any enabled Guix channel, the package and its dependencies will be installed from there.
If the package is not available in Guix the procedure attempts to
generate a package definition by recursively importing metadata from
CRAN, Bioconductor, or a git/mercurial repository. Upon successful
generation of package definitions in ~/.Rguix/packages.scm
the
package is installed with Guix.
The file ~/.Rguix/packages.scm
is only appended to for
reproducibility reasons. Each entry has a comment with a timestamp
for convenience. The package definitions in that file could be
upstreamed to a Guix channel to make it easier for others to reproduce
the environment. Consider sending package definitions to either the
Guix project or the
Guix Science project.
Usage
guix.install(package, profile = NULL, guix = "guix", archive = NULL,
cacheFile = NULL, stdout = "", stderr = "")
Arguments
package |
The name of the R package to be installed as used on CRAN or Bioconductor, or a HTTP URL of a git repository holding an R package. |
profile |
The target Guix profile where the package should be installed. By
default this is the default Guix profile at
|
guix |
The absolute file name of the |
archive |
This argument is used to override the Guix importer's |
cacheFile |
The absolute file name of the file where the imported package
definitions should be recorded. When |
stdout |
Use this argument to redirect or silence Guix output printed to the
standard output stream. The default value is |
stderr |
Use this argument to redirect or silence Guix output printed to
the standard error stream. The default value is |
Value
This procedure is run for its side-effects.
Author(s)
Ricardo Wurmus, ricardo.wurmus@mdc-berlin.de
Examples
## Not run:
guix.install("methylKit", cacheFile=tempfile())
guix.install("methylKit", profile="/home/foo/custom/.guix-profile", cacheFile=tempfile())
guix.install("methylKit", guix="/gnu/remote/bin/guix", cacheFile=tempfile())
## End(Not run)