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

check_installed: error on just-uninstalled package (dirty R session) #1561

Closed
aronatkins opened this issue Feb 13, 2023 · 0 comments
Closed

Comments

@aronatkins
Copy link

aronatkins commented Feb 13, 2023

Using rlang-1.0.6:

install.packages("shiny")
requireNamespace("shiny")
remove.packages("shiny")
rlang::check_installed("shiny", version = "0.0.1", reason = "to be shiny")
#> 
#>   There is a binary version available but the source version is later:
#>       binary source needs_compilation
#> shiny  1.6.0  1.7.4             FALSE
#> installing the source package 'shiny'
#> Loading required namespace: shiny
#> Removing package from '/Library/Frameworks/R.framework/Versions/3.6/Resources/library'
#> (as 'lib' is unspecified)
#> Error in utils::packageVersion(pkg): there is no package called 'shiny'

The utils::packageVersion error goes away if the R session is restarted after removing shiny.

Created on 2023-02-13 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant