The following script runs in R console but when run in bash terminal using the Rscript command it throws the error below the code.
libs = c("openxlsx", "biomaRt", "stringr", "yaml")
invisible(suppressPackageStartupMessages(lapply(libs, require, character.only=TRUE)))
Every effort to install and reinstall the above mentioned packages has rendered no fruit. I keep wondering why the packages load in the console but fail in the terminal command
My R version is 3.6.0 and for dependency issues that is the only one I can use for now.