50 likes | 196 Vues
Skills Sharing: Batch files to graph with R. GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Hilary Dugan. Batch file to run R script. Any R script can be run. In my example, my R script outputs a . pdf with two barplots
E N D
Skills Sharing:Batch files to graph with R GLEON Fellowship Workshop January 14-18, 2013 Sunapee, NH Hilary Dugan
Batch file to run R script • Any R script can be run. • In my example, my R script outputs a .pdf with two barplots • I wanted the .pdf to be updated daily without the user having to open R.
Skill relevance/usefulness • Extremely useful for remotely accessed data • Easiest way to quickly view updated data files
Application to data • The data files are updated daily, but header information remains the same (important) • Challenges: • Different operating systems!
Share and visualize results • Batch file for Windows 7 • Write in notepad. Save as “NAME.bat” "C:\Program Files\R\R-2.15.2\bin\x64\R.exe" CMD BATCH "D:\h.dugan\...\BB_sonar.r" "D:\...\Sonar.out”