goldingn / versions

Query and Install Specific Versions of Packages on CRAN
Other
24 stars 7 forks source link

Odd error thrown when package is not recognized #24

Open hughjonesd opened 6 years ago

hughjonesd commented 6 years ago
versions::available.versions(c("bad", "testthat"))
Error in if (!all(df$available)) { : 
  missing value where TRUE/FALSE needed
In addition: Warning message:
In current.version(pkgs) :
  The current version and publication date of bad could not
                     be detected
goldingn commented 6 years ago

Thanks! Yes, this wants a clearer error message. My preference would be for something along the lines of:

'bad' does not appear to be a valid package name
goldingn commented 6 years ago

Actually, I can't replicate your error message using the github master branch of versions. I get this sensible error message:

devtools::install_github("goldingn/versions")
versions::available.versions(c("bad", "testthat"))
Error in package_status(pkgs) : 
  'bad' does not appear to be a valid package on CRAN 
hughjonesd commented 6 years ago

Then maybe it's fixed. My greta is from CRAN. -- Sent from Gmail Mobile

goldingn commented 6 years ago

Ah OK. That makes sense. I'll try and get this up on CRAN soon then.