0

Unsure what happened, I installed tidyquant and quantmod to work with stock prices and now get the following error message

library(tidyverse)

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

I went through and updated all my R packages and restarted R neither of which solved the issue. Any help would be appreciated.

I assume the following error code is related as well when I try and run tidyquant

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘rlang’ 0.4.5 is already loaded, but >= 0.4.7 is required

Thanks again for any help

MrFlick
  • 195,160
  • 17
  • 277
  • 295
johnsmith_228
  • 105
  • 3
  • 11
  • Did you try installing `rlang` ? `install.packages('rlang')` – Ronak Shah Oct 17 '20 at 03:40
  • I saw that idea in other resolutions, getting following message package ‘rlang’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘rlang’ Warning in install.packages : problem copying C:\Users\xxx\xxx- Permission denied Warning in install.packages : restored ‘rlang’ – johnsmith_228 Oct 17 '20 at 03:42
  • Have you tried restarting your R session? Make sure `install.packages("rlang")` before any other packages are loading. When you restart do you reload your previous workspace or have a start-up function in you profile that may be automatically loading the rlang package before you try to update it? – MrFlick Oct 17 '20 at 03:45
  • tried that same error, pixmap is loading automatically at start – johnsmith_228 Oct 17 '20 at 03:56
  • Just FYI, since you solved your problem. This happened to me on two machines in the last week. I was running older versions of R on both (~v3.5). I'm guessing it may have had something to do with that. Try updating your version of R by running `installr::updateR()` from Rgui. It solved the problem for me on both systems. – hmhensen Oct 17 '20 at 08:34

1 Answers1

0

fully uninstalling tidyverse, rlang, tidyquant, and quantmod then reinstalling them while permanently uninstalling pixmap fixed the issue. Appreciate the suggestions given.

johnsmith_228
  • 105
  • 3
  • 11