Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


packageDiff (version 0.1)

pkgInfo: Extract Package Information

Description

This function extracts information from an R package.

Usage

pkgInfo(pkg, leaveRemains = FALSE)

Arguments

pkg

The compressed (tar.gz) build file of an R package.

leaveRemains

Keep decompressed package in temp directory.

Value

Package

Package name

Version

Version number

Imports

Imported packages

Suggests

Suggested packages

ImportedFunctions

Functions imported from other packages

ExportedFunctions

Functions exported from package

AllFunctions

All defined functions

FormalArgs

Function arguments

Data

Dimension information on data sets

documentation

Full package documentation

Details

Generate package information from its build file.

Examples

Run this code
# NOT RUN {
tarfile <- system.file("examples", "acepack_1.3-3.3.tar.gz", package = "packageDiff")
info <- pkgInfo(tarfile)
# }
# NOT RUN {
url <- 'https://cran.r-project.org/src/contrib/Archive/acepack/acepack_1.3-3.3.tar.gz'
info <- pkgInfo(url)
# }

Run the code above in your browser using DataLab