How to Use System Commands in Your R Script or Package
ropensci.org