Thanks for your time.The result of libPaths are "/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5" and "/opt/R/3.5.2/lib/R/library" when run .libPaths() command in RScript.I don't have the permission for "/opt/R" dir,but can change the permission to 777 for "/home/rstudio-user/R" dir.