Learn R Programming

icesTAF (version 3.6.0)

is.r.package: Is R Package

Description

Check if .tar.gz file is an R package.

Usage

is.r.package(targz, spec = NULL, warn = TRUE)

Value

Logical indicating whether targz is an R package.

Arguments

targz

a filename ending with tar.gz.

spec

an optional list generated with parse.repo.

warn

whether to warn if the file contents look like an R package nested inside a repository.

Details

The only purpose of passing spec is to get a more helpful warning message if the file contents look like an R package nested inside a repository.

Examples

Run this code
if (FALSE) {
is.r.package("bootstrap/software/SAM.tar.gz")
is.r.package("bootstrap/software/stockassessment.tar.gz")
}

Run the code above in your browser using DataLab