dep4deb | R Documentation |
Tries to fetch all (missing) R packages to successfully build a Debian package. The packages are downloaded in source format
for you to debianize
,
but dep4deb
can try to check for available Debian packages
instead.
dep4deb(
pck.source.dir,
pck.name = NULL,
destdir = file.path(tempdir(), "roxyPackge", "downloads"),
repos = getOption("repos"),
all = FALSE,
check.deb = TRUE,
origin = "cran",
origin.alt = list(),
available = NULL
)
pck.source.dir |
Character string,
path pointing to the root directory of your package sources, to a local R package source tarball, or
a full URL to such a package tarball. Tarballs will be downloaded to |
pck.name |
Character string,
the package name. This is an alternative to using |
destdir |
File path to the directory where all downloaded files should be saved to. |
repos |
Character vector,
the base URL(s) of the repositories to use (see |
all |
Logical, if |
check.deb |
Logical, |
origin |
A character string for the package origin,
see |
origin.alt |
A named list for more complex origin configuration,
see |
available |
An object as returned by |
The function works its way recursively through the dependencies of the dependencies, beginning with the original package given. To make it easier for you to debianize the downloaded packages in a proper order, all downloads will be stored in numbered subfolders of the main download folder, and you should work from the highest number backwards.
Returns a list with two elements:
A matrix as returned by download.packages
,
listing all downloaded sources
A character vector naming already available Debian packages
## Not run:
dep4deb(pck.name="roxyPackage")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.