Hi, i tried to install tidyverse and it give following error-
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘magrittr’
However , when i tried to install ‘magrittr’ package and it gives somethings like that-
package ‘magrittr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘magrittr’
Warning in install.packages :
problem copying F:\R\R-4.1.2\library\00LOCK\magrittr\libs\x64\magrittr.dll to F:\R\R-4.1.2\library\magrittr\libs\x64\magrittr.dll: Permission denied
Warning in install.packages :
restored ‘magrittr’
The downloaded binary packages are in
C:\Users\DELL_BVS\AppData\Local\Temp\RtmpM9C6et\downloaded_packages
It looks like you have an older version of {magrittr} installed and loaded.
Try restarting R and Rstudio and then try installing {magrittr}.
If you get the same error, it is possible that RStudio is loading a .Rdata file that is recreating an older environment. In that case it is a good idea to disable the automatic loading.
Tools > Global Options
Uncheck the"Restore .Rdata into Workspace at start-up" box