available icon indicating copy to clipboard operation
available copied to clipboard

base packages listed as available on CRAN

Open jmbarbone opened this issue 3 years ago • 2 comments

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

jmbarbone avatar Oct 24 '22 18:10 jmbarbone

This problem persists. Is this package still in use or has it been deprecated?

jkylearmstrong avatar Jun 28 '24 22:06 jkylearmstrong

I will indeed supersede this package soon, by pak::pkg_name_check():

Screenshot 2024-06-29 at 10 19 46 AM

gaborcsardi avatar Jun 29 '24 08:06 gaborcsardi