Learn R Programming

mmstat4 (version 0.2.0)

packages: Extract library and require calls in R and import calls from Python

Description

packages counts the number of library/require/import calls for R and Python commands in the files.

Usage

packages(files)

Rlibs(files)

modules(files)

Value

a table how frequently the packages are called

Arguments

files

character: file name(s)

Examples

Run this code
if (interactive()) {
  files <- list.files(pattern="*.(R|py)$", full.names=TRUE, recursive=TRUE)
  packages(files)
}

Run the code above in your browser using DataLab