English

How to open the currect working directory in R

Sometimes we just want to open the work directory in R to process the files. In Linux shell, we can use open . comment. How to do in R? We can use the below comment: system(sprintf("open %s", shQuote(getwd()))) It this script, shQuote is ued to “Quote Strings for Use in OS Shells”.