[R] R CMD Batch on Windows and use of the ampersand

Richard M. Heiberger rmh @end|ng |rom temp|e@edu
Wed Dec 25 21:49:04 CET 2019

Hi Erin.

I think the easiest way is to use sh, which is included as part of Rtools.

>From the CMD command line, enter
c:/Rtools/bin/sh -i

You are now running a Unix shell, and all the behaviors you expect are
there, including ";" and "&"


On Wed, Dec 25, 2019 at 12:16 PM Erin Hodgess <erinm.hodgess using gmail.com> wrote:
> Hello!  Merry Christmas to those of you celebrating it, and happy
> holidays to those celebrating other holidays.
> Here is a question about R CMD BATCH on Windows.  We know that
> R CMD BATCH infile outfile &
> On Linux or Mac will let you continue interactively from the command line.
> However, it does not work with the interactive component from Windows.  Is
> there a workaround for this, please?
> Thanks,
> Sincerely,
> Erin
> Erin Hodgess, PhD
> mailto: erinm.hodgess using gmail.com
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

More information about the R-help mailing list