[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.

Stephen

--please do not edit the information below--

Version:
 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)

Locale:
LC_CTYPE=en_GB.UTF-8;LC_NUMERIC=C;LC_TIME=en_GB.UTF-8;LC_COLLATE=en_GB.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_GB.UTF-8;LC_PAPER=en_GB.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_GB.UTF-8;LC_IDENTIFICATION=C

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