Loading edited code into R

Manning, Michael Michael.Manning at esr.cri.nz
Tue Sep 18 01:42:29 CEST 2001


Hello All

Last week I posted a message to say that I was having some issues with
loading edited code into R.  To recap, I am running R 1.3.0 under Xemacs
21.4.3 via ESS 5.1.19 on a Windows '95 machine.  I am able to pop objects to
a buffer to be edited with C-c C-d, however I am unable to load the edited
code back into R with C-c C-l.  I receive variations on the following error
message:

"Error in file(file, "r") : cannot open file 'h: mpmmanning.mjmfun.R'"

I understand that the command C-c C-l, aka ess-load-file, sends R (or S etc)
the command "source("C:\path\to\myfile")", where "myfile" is the temporary
file created when an object is dumped.  I have deduced that the difficulties
I am having are because the file name and path supplied to R are not in
either of the two forms that the windows port of R I am using considers
acceptable, i.e. "C:\\path\\to\\myfile" or "C:/path/to/myfile".

My question to the list is how do I "tell" Xemacs or ESS the "correct" file
path and name to use?  I have had a look through the documentation and
through the ESS lisp files I thought might be relevant (e.g. ess.el,
ess-inf.el, essd-r.el etc) and am frankly confused.  Can anybody help?

Regards

MJM

Michael J. Manning
Information Analyst
Institute of Environmental Science and Research Ltd
PO Box 50-348
Porirua
New Zealand
Tel: 64 04 914 0700
D/D: 64 04 914 0744  
Fax: 64 04 914 0770   

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