maintaineR.data: Data

Description Usage Arguments Value Author(s)

Description

Manipulates CRAN data files.

Usage

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)

Arguments

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.

Value

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.

Author(s)

Maëlick Claes <himself@maelick.net>


ecos-umons/maintaineR documentation built on May 15, 2019, 10:07 p.m.