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?