inShell function

Convert R code to a character vector of shell commands evaluating the given R code.