Tag Archives: (package)error:(as ‘lib’ is unspecified)installation of package had non-zero exit status

[Solved] R Package Install error:(as ‘lib’ is unspecified)installation of package had non-zero exit status

Help my younger martial sister install an R package called devtools across operating systems

Only windows and OS on crane

The situation is as follows:

You can install (Windows) on this computer

But it can’t be installed on supercomputing platform. The platform system is red hat (based on Linux)

The error given is

Installing package into ‘~:/path/’
(as ‘lib’ is unspecified)

And installation of package had non zero exit status

The solution is as follows:

The following are all implemented in

In the local (own computer installed the package) and the server’s rstudio

Operation

(.libPaths())

find the package according to the path given by local rstudio. Copy the entire folder to the path of Linux platform

refresh rstudio

Implementation

library(devtools)

OK

Feel that this is a universal method, welcome to exchange