r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
331 stars 152 forks source link

`package_deps` returns `TRUE` and `"CRAN"` for columns `is_cran` and `remote` on made-up package #607

Closed ramiromagno closed 2 years ago

ramiromagno commented 3 years ago

Tried this with remotes version 2.3.0.9000:

library(remotes)
foo <- package_deps('MadeUpPackage')
foo
#> Not on CRAN ----------------------------
#>  package      installed available is_cran remote
#>  MadeUpPac... NA        NA        TRUE    CRAN
colnames(foo)
#> [1] "package"   "installed" "available" "diff"      "is_cran"   "remote"

In addition, the columns is_cran and remote are absent from the Value section of the help page of package_deps().

jimhester commented 2 years ago

The package you are trying to install is always included as assumed to be a CRAN package. I don't think it is worth fixing this.