I have a problem with the location path of packages in RStudio: I reinstalled R 4.1.0 and RStudio 1.4.1106. Then I started to download some packages to a network drive
path <- "\\\\NAS\\TOOLS$\\DIR\\R-4.1.0"
install.packages("ggplot2",lib = path)
When I add this path to the library path
R throws the error
Error: invalid version specification ‘NA’ together with a warnings regarding the
knitr package before I even load any package. The
.libPath(path) command was executed correctly though, running
So when I load the package, it works. However, I think it is not very reassuring if every code I run starts with an error. It is an issue of RStudio, in command line R, there is no such error and everything works.
Any ideas what's going on?