I would like to use a .bat file to run a particular .r file daily with the windows taskmanager, but I can not get it to run.
My steps: 1) open notepad
2) enter code, which is currently:
"C:\Program Files\R\R-3.3.0\bin\i386\Rscript.exe" --vanilla "G:\Macroeconomia\Economistas\Coleta\Prohort\Prohort.R"
3) save the file in .bat format
4) two clicks to run it
However the bat does not run entire, it just loads the packages from my code and dates.