I am trying to run an R script from a bash script using the Rscript
command. The cluster I am on has multiple versions of R, and is telling me: "Error: This is R version 2.15.1. Package 'raster' requires >= 3.0.0. Is there a way to specify the version of R to run Rscript
with?
#!/bin/sh
Rscript Test.R