Execute system commands within an R Script
To execute a system command from within an R script, just use system(). This is handy for zipping large output files on the fly.
system("gzip mydat.csv", wait=FALSE)
To leave a comment
for the author, please follow the link and comment on his blog: Quantitative Ecology
offers daily e-mail updates
news and tutorials
on topics such as: visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook