I had an issue on changing the R library on linux. The command I typed in is not working.
sudo R -e ".libPaths()"
.libPaths()
[1] "/usr/lib64/R/library" "/usr/share/R/library"
sudo R -e ".libPaths(c(.libPaths(), '/usr/test'))"
.libPaths(c(.libPaths(), '/usr/test'))
After that, if I re-run sudo R -e ".libPaths()"
, I will get the same default path without the new path I added.