Perhaps this will work, too:

    Rscript -e "system(paste(c('sudo apt-get install', sprintf('r-cran-%s', tolower(commandArgs(TRUE)))), collapse=' '))" $*