[Rd] (PR#14012)

sje30 at damtp.cam.ac.uk sje30 at damtp.cam.ac.uk
Fri Oct 16 15:00:10 CEST 2009

I think Rscript has a problem running files that have mac encodings
for newline (^M rather than ^J on linux).  If I source the file within
R, it works okay:

> source('j.R')
[1] "MEA_data/sernagor_new/CRX_P7_1.txt"

But if I run the file using Rscript on a linux box I get a strange
error message: 

$ Rscript --vanilla j.R
Execution halted

The example script j.R is at http://www.damtp.cam.ac.uk/user/sje30/j.R
rather than attaching it here.  I don't think there is anything
specific about the script though apart from the line endings.


--please do not edit the information below--

 platform = x86_64-pc-linux-gnu
 arch = x86_64
 os = linux-gnu
 system = x86_64, linux-gnu
 status = 
 major = 2
 minor = 9.2
 year = 2009
 month = 08
 day = 24
 svn rev = 49384
 language = R
 version.string = R version 2.9.2 (2009-08-24)


Search Path:
 .GlobalEnv, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base

More information about the R-devel mailing list