Is there a way to pass a shell environment variable to Rscript. For example:
Rscript -e 'devtools::install_github("private/repo",auth_token = "$GITHUB_CRED")'
I've tried this and it just passes the literal character. I'm wondering if there's another way?
auth_token = shell("$GITHUB_CRED", intern = TRUE)?readLines()Rscript -e 'args <- commandArgs(trailingOnly = TRUE); paste("bla", args[1])' myPasswordshellandsystem, neither worked.