I would like to execute a batch file from a R script. The file is in a directory like
shell.exec command uses the Windows-associated application to open the file. Note the double back-ticks.
write.csv(file='tmp.csv',tmpdat);shell.exec('tmp.csv') is useful (assuming you've associated CSV files with your preferred application for viewing CSV files) for quickly checking output.