1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) # add PKGBUILD path to the library .libPaths( c( .libPaths(), args[1]) ) if (!require("remotes",quietly=TRUE)) install.packages("remotes", lib=args[1], repo="https://cloud.r-project.org/") remotes::install_local("ledgerplots",lib=args[1])