Error in .libPaths()

Hello everybody.
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 using

path <- "\\\\NAS\\TOOLS$\\DIR\\R-4.1.0"

install.packages("ggplot2",lib = path)

When I add this path to the library path

.libPaths(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

.libPaths()

yields

[1] "\\\\NAS/TOOLS$/DIR/R-4.1.0"

[2] "C:/Apps/R-4.1.0/library"

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?

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.