Description Usage Arguments Value Author(s)
Manipulates CRAN data files.
1 2 3 4 | ReadCRANData(datadir)
DownloadDataFile(file, dest.root, url.root, download.once=FALSE)
DataState(packages, datadir)
PackagesToDownload(todl, packages, cran, g, options, clones.size, clones.loc)
|
datadir |
Root data directory. |
file |
Data file to download. |
dest.root |
Root directory where to store data. |
url.root |
Root url where to fetch data. |
download.once |
If TRUE, downloads data only if the destination file doesn't exist. |
cran |
CRAN data. |
todl |
Dataframe of packages to download. |
packages |
Dataframe with all packages. |
g |
Dependency graph. |
options |
Vector containing types of related package to consider (deps, rev.deps, clones and/or conflicts). |
clones.size |
Maximum clone AST size to consider. |
clones.loc |
Maximum clone line of code to consider. |
ReadCRANData returns a list with four elements containing
loaded rds/packages.rds, rds/deps.rds, clones.rds and conflicts.rds
from https://github.com/maelick/CRANData.
DownloadDataFile downloads a data file from url.root.
DataState returns a dataframe with package name, version and
mtime with additional boolean columns indicating if there is a local
copy of the namespace, function and description file data.
PackagesToDownload returns a data.frame listing packages that
needs to be downloaded along todl. This will list all of
dependencies, reverse dependencies and the packages with clones and
conflicts if they are provided in options.
Maëlick Claes <himself@maelick.net>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.