dplyr not loading

When I am trying to load dplyr, it is saying that rlang is the wrong version. I have removed rlang and reinstalled it then checked its version which is 1.0.2 which should be sufficient. This is on juypter notebook.

Error: package or namespace load failed for ‘dplyr’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
namespace ‘rlang’ 0.4.11 is already loaded, but >= 1.0.0 is required

how did you check the rlang version ? what you say disagrees with your error message...
The implication I suppose is that you need to restart R to notice a change in installed rlang version given if rlang is loaded then its version can't change. Try restarting ?

I used packageVersion("rlang").

Its weird I've tried restarting.

ok lets check the restart behaviour.
When you restart, immediately after run ls() and sessionInfo() to look at your session.
Mine is like this

> ls()
character(0)
> sessionInfo()
R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] compiler_4.0.5  fastmap_1.1.0   cli_3.1.1       htmltools_0.5.2 tools_4.0.5     yaml_2.2.0     
 [7] rmarkdown_1.13  knitr_1.23      xfun_0.29       digest_0.6.25   rlang_1.0.1     evaluate_0.14

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.