available
available copied to clipboard
base packages listed as available on CRAN
Most of the base R packages return TRUE
for available_on_cran()
. Feels like all of these should return FALSE
.
# # get base packages
# installed.packages() |>
# as.data.frame() |>
# # Priority == "base" excludes {translations}
# subset(grepl("^Part of R", License), "Package", drop = TRUE)
pkgs <- c("base", "compiler", "datasets", "graphics", "grDevices", "grid",
"methods", "parallel", "splines", "stats", "stats4", "tcltk",
"tools", "translations", "utils")
found <- sapply(pkgs, available::available_on_cran)
split(found, found)
#> $`FALSE`
#> grid splines tcltk
#> FALSE FALSE FALSE
#>
#> $`TRUE`
#> base compiler datasets graphics grDevices methods
#> TRUE TRUE TRUE TRUE TRUE TRUE
#> parallel stats stats4 tools translations utils
#> TRUE TRUE TRUE TRUE TRUE TRUE
Created on 2022-10-24 with reprex v2.0.2