Issue with Empty .libPaths() in RStudio

Hello RStudio Community,

I'm encountering an issue with the .libPaths() function in RStudio, and I'm seeking assistance to resolve it. I have a setup where I'm running R within a Docker container, and I'm experiencing unexpected behavior with the library paths.

Here's a brief overview of the problem:

  • I have a script called that installs certain libraries at the location /home/file/..... , and gives the logs of successful installation.
  • The '' file invokes anorther R file using /usr/bin/Rscript setup.R.
  • However, when setup.R runs, it tries to load the library using 'library(yyyyy)' command, the error shown is library(yyyy) : there is no package called 'yyyyy'.
  • further to debug, I added the command list.files('/home/file/.....'), which gives the output character(0)

I have verified the following:

  • The Docker container setup seems to be correct, as other users have successfully run their applications using the same Docker base image.
  • The .Renviron file is empty.
  • The installation of packages in appears to be successful

I would greatly appreciate any insights, suggestions, or troubleshooting steps to help diagnose and resolve this problem. If there's any additional information or specific code snippets that would be helpful, please let me know.

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.