Learn R Programming

jwutil (version 1.2.1)

min_r_version: Find minimum R version required for package

Description

Recursively search dependencies for R version, and find the highest stated R version requirement.

Usage

min_r_version(pkg)

Arguments

pkg

string with name of package to check

Examples

Run this code
# NOT RUN {
base <- c("base", "compiler", "datasets", "grDevices", "graphics",
"grid", "methods", "parallel", "profile", "splines", "stats",
 "stats4", "tcltk", "tools", "translations")

# }
# NOT RUN {
base_reqs <- lapply(base, min_r_version)
contrib <- c("KernSmooth", "MASS", "Matrix", "boot",
"class", "cluster", "codetools", "foreign", "lattice",
 "mgcv", "nlme", "nnet", "rpart", "spatial", "survival")
contrib_reqs <- lapply(contrib, min_r_version)
min_r_version("icd")
# }

Run the code above in your browser using DataLab