Description Usage Arguments Source Examples
Recursively search dependencies for R version, and find the highest stated R version requirement.
1 | min_r_version(pkg)
|
pkg |
string with name of package to check |
Based on ideas from http://stackoverflow.com/questions/38686427/determine-minimum-r-version-for-all-package-dependencies
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.