[R] R script in batch mode — Echoing messages to windows shell
dwinsemius at comcast.net
Tue Aug 5 23:33:29 CEST 2014
On Aug 5, 2014, at 1:53 PM, Dominic Comtois wrote:
> I have an R script which is to be run in batch mode from a Windows shell
> and I need to "echo" messages to this shell (reporting that this step has
> succeeded and that other failed, and so on).
> A combination of R CMD BATCH myscript.R con and options(echo=FALSE) is not
> really an option since I also need to generate an .Rout file with all the
> commands and outputs.
> I have tried shell("echo Some text") to no avail.
> Any help most appreciated!
> [[alternative HTML version deleted]]
This was just seen on SO:
"If my guess is correct, shell("echo Some test > CON") should work. – Harry Johnston 1 min"
If you had read the Posting Guide, you might have seen that cross-posting to multiple sites is deprecated.
Alameda, CA, USA
More information about the R-help