code: Code

CodeR Documentation

Code

Description

Extract informations from packages R code with sourceR.

Usage

ParseCode(datadir, db="rdata", host="mongodb://localhost")
ParsePackage(source, repository, ref, datadir)
ExtractFunctions(datadir, db="rdata", host="mongodb://localhost", cluster.size=6)
FunctionDefinitions(package)
ExtractFunctionCalls(datadir, db="rdata", host="mongodb://localhost", cluster.size=6)
FunctionCalls(package)


ExtractCodingStyle(datadir, db="rdata", host="mongodb://localhost", cluster.size=6)
CodingStyle(package)

Arguments

datadir

Directory where data is stored.

db

MongoDB database.

host

MongoDB host.

cluster.size

Number of cluster nodes to use.

source

Source of the repository.

repository

Repository in which the package is stored.

ref

Reference of the repository to use.

package

package.code object containing parsed R code of a package.

Value

ParsePackage parses package code and stores result in rds files.

ExtractFunctions, ExtractFunctionCalls and ExtractCodingStyle extract function definitions, function calls and coding style found inside R packages and store them on disk. These functions are run on a cluster of the given size.

ParsePackage parses the R code of the package found in the given repository into datadir/code/source/repository/ref.rds.

FunctionDefinitions stores result of sourceR::FunctionDefinitions into datadir/functions/source/repository/ref.rds.

FunctionCalls stores result of sourceR::FunctioNCalls into datadir/calls/source/repository/ref.rds.

CodingStyle stores result of sourceR::CodingStyle into datadir/codingstyle/source/repository/ref.rds.

Author(s)

Maëlick Claes <himself@maelick.net>


ecos-umons/extractoR documentation built on June 26, 2022, 2:21 p.m.