r-lib / available

Check if a package name is available to use
https://r-lib.github.io/available/
Other
144 stars 17 forks source link

base packages listed as available on CRAN #82

Open jmbarbone opened 2 years ago

jmbarbone commented 2 years ago

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

jkylearmstrong commented 4 months ago

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

gaborcsardi commented 4 months ago

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

Screenshot 2024-06-29 at 10 19 46 AM