I have a very simple batch file as shown below that is used to run a script in R (similar to Matlab).
This script always worked on Windows XP, and works if I paste the text into the Windows 7 "Run" command prompt. It does not run if I double click the batch file.
Does anyone know why this might be? My ultimate goal is to set a scheduled event to run the batch file.
R CMD BATCH "C:\Code.r" "C:\output.r"