Dominic Comtois
2014-Aug-05 20:53 UTC
[R] R script in batch mode — Echoing messages to windows shell
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]]
David Winsemius
2014-Aug-05 21:33 UTC
[R] R script in batch mode — Echoing messages to windows shell
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. -- David Winsemius Alameda, CA, USA