Message-ID: <A2FC44EB-02B7-4514-8394-E1EB37B515EA@comcast.net>
Date: 2014-08-05T21:33:29Z
From: David Winsemius
Subject: R script in batch mode — Echoing messages to windows shell
In-Reply-To: <CAEfsz7qfTov=vapBQtY9GfUgaPzU125cM22-sNVxd0bH1C+RqA@mail.gmail.com>
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