Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base packages listed as available on CRAN #82

Open
jmbarbone opened this issue Oct 24, 2022 · 2 comments
Open

base packages listed as available on CRAN #82

jmbarbone opened this issue Oct 24, 2022 · 2 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@jmbarbone
Copy link

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

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Oct 24, 2022
@jkylearmstrong
Copy link

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

@gaborcsardi
Copy link
Member

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

Screenshot 2024-06-29 at 10 19 46 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants