to make sure i'm keeping track of quotes here, would this be the same as
    Rscript -e "install.packages(\"devtools\", repos=\"${CRAN}\")"
or (taking advantage of single quotes in R)
    Rscript -e "install.packages('devtools', repos='${CRAN}')"
if that last is valid, it seems like it might be the easiest to read.