Thanks for your reply  Richard but unfortunately it does not help. I have
the following in my init.el for xemacs:

(setq ess-source-directory (expand-file-name "C:/Documents and
Settings/marc/S-source/")).

When I run C-c C-d the file marc.test.R gets generated in S-source
directory. But when I want to load it with C-c C-l, I get the error I
reported. Actually if I  load the same file from inside R with
source("C:/Documents and Settings/marc/S-source/marc.test.R") it works fine
but C-c C-l gives me the error.


/Marc

On 3/11/07, Richard M. Heiberger <rmh@temple.edu> wrote:
>
> The message that a filename of this form
> 'c:Documents and SettingsmarcS-sourcemarc.test.R'
> can't be found means you used the wrong syntax.
>
> You did something like
> 'c:\Documents and Settings\marc\S-source\marc.test.R'
> and the "\" was interpreted by R as an escape character and therefore
> effectively vanished when it was sent to DOS.
>
> On windows there are two options.  I recommend the first since
> it is consistent with how R works everywhere.  Use forward slashes "/".
> 'c:/Documents and Settings/marc/S-source/marc.test.R'
> Ecen better is to avoid embedded blanks and use the 8.3
> notation, which is usually
> 'c:/docume~1/marc/S-source/marc.test.R'
> You can find the 8.3 name from the MSDOS prompt CMD with dir/x
>
> The other option is to use double backslashes.  The first
> backslash escapes the second before sending it to MSDOS
> 'c:\\Documents and Settings\\marc\\S-source\\marc.test.R'
>
> Rich
>

	[[alternative HTML version deleted]]


