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
xxxxxx.sh
that installs certain libraries at the location /home/file/..... , and gives the logs of successful installation. - The 'xxxxx.sh' 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 islibrary(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
install_libraries_as_root.sh
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.