[Rd] problems with Rcmd BATCH (PR#2965)

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon May 12 08:58:47 MEST 2003


On Fri, 9 May 2003 adrian_humbert at yahoo.com wrote:

> I have a test file that runs OK with 
> > Rterm.exe --no-restore  < filename.R 
> 
> When I try 
> > Rcmd BATCH filename.R 
> I get the following error message:
> 
> Can't locate R/Utils.pm in @INC (@INC contains:
> C:\PROGRA~1\R\rw1070\share\perl
> c:/Perl/lib c:/Perl/site/lib .) at
> C:\PROGRA~1\R\rw1070/bin/BATCH line 22.
> BEGIN failed--compilation aborted at
> C:\PROGRA~1\R\rw1070/bin/BATCH line 22.
> 
> If I edit the file BATCH on line 22 and I comment out 
> line 22 (use R::Utils), Rcmd BATCH works fine. 

It won't: try Rcmd BATCH --version (see --help).

> Am I doing something wrong or is this a bug?  Perl is
> installed, and in the path. 

You don't have (on Windows, unstated, R 1.7.0, unstated) the files for
compiling the package sources installed.

Why have you sent a bug report?  This was discussed on R-help very 
recently when I sent this explanation.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list