error loading source file
Andrew.Swan at csiro.au
Andrew.Swan at csiro.au
Wed Sep 26 23:04:00 CEST 2001
Bill - Your solution(s) seems reasonable - but the question for me is how to
get C-c C-l to do that in ESS - having no knowledge of how to modify the
lisp code myself.
Regards
> -----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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the ESS-help
mailing list