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
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.