error loading source file
Michael.Manning at esr.cri.nz
Thu Sep 27 00:04:46 CEST 2001
I have had exactly the same drama that you appear to be having. I am
running pretty much exactly the same kind of system that you are (same
version of R, same version of ESS, however I am running a Win95 machine),
and am receiving the same kind of errors when I try to C-c C-l a source
file. I have written help requests to the list a couple of times in the
past fortnight and have not received a reply, however I remain hopeful :).
I guess the bug is buried somewhere in ESS's lisp code. It is also beyond me
(for now :)) to find and debug the error. I hope that this will be fixed in
the next release of ESS. Otherwise, we will need to go back to running R
(and ESS) on machines with real operating systems...
Michael J. Manning
Institute of Environmental Science and Research Ltd
PO Box 50-348
Tel: 64 04 914 0700
D/D: 64 04 914 0744
Fax: 64 04 914 0770
> From: Andrew.Swan at csiro.au[SMTP:Andrew.Swan at csiro.au]
> Sent: Thursday, September 27, 2001 9:04 AM
> To: bill at insightful.com; ess-help at stat.math.ethz.ch
> Subject: RE: error loading source file
> Bill - Your solution(s) seems reasonable - but the question for me is how
> get C-c C-l to do that in ESS - having no knowledge of how to modify the
> lisp code myself.
> > -----Original Message-----
> > From: Bill Dunlap [mailto:bill at insightful.com]
> > Sent: Thursday, 27 September 2001 4:57 AM
> > To: Andrew.Swan at csiro.au
> > Subject: Re: error loading source file
> > On Wed, 26 Sep 2001 Andrew.Swan at csiro.au wrote:
> > > Hi - with ess-5.1.19, xemacs 21.1.9, and R1.3.1 on win2000,
> > I am getting an
> > > error when trying to load a source file:
> > >
> > > Error in file(file, "r") : cannot open file `d:
> > mpswa088.line.plot.R'
> > >
> > > The file is supposed to be `d:\tmp\swa088.line.plot.R', so
> > it seems that the
> > > "\t" is being substituted by a tab, and the second "\"
> > doesn't appear at
> > > all.
> > >
> > > Can this be fixed easily?
> > Use a double backslash to mean one backslash. Otherwise \t means tab,
> > \n means newline, \b means baskspace, etc. These are the C language
> > conventions.
> > Another solution is to use / instead of \ in paths. They are
> > generally
> > equivalent on Windows (they are equivalent in C code but the DOS shell
> > uses / for other things).
> > In Splus6 we added a warning in the parser to sometimes alert
> > you to potential
> > problems:
> > > file<-"d:\tmp\swa088.line.plot.R"
> > Warning messages:
> > The initial backslash is ignored in \s -- not a
> > recognized escape sequence.
> > Use \\ to make a backslash
> > Note that is won't complain about "\t" because that is a
> > recognized escape
> > sequence, but it catches the \s.
> > --------------------------------------------------------------
> > --------------
> > Bill Dunlap 22461 Mt
> > Vernon-Big Lake Rd
> > Insightful Corporation Mount
> > Vernon, WA 98274
> > bill at insightful.com 360-428-8146
> > "Formerly known as MathSoft, Insightful Corporation provides
> > analytical
> > solutions leveraging S-PLUS, StatServer, S-PLUS Analytic Server and
> > consulting services."
> > "All statements in this message represent the opinions of
> > the author and do
> > not necessarily reflect Insightful Corporation policy or position."
> ess-help mailing list -- To (un)subscribe, send
> subscribe or unsubscribe
> (in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
More information about the ESS-help