[ESS] Ess-source-directory in windows

Wiener, Matthew matthew_wiener at merck.com
Thu Jun 16 19:41:49 CEST 2005


All --

In both my unix and windows .xemacs files (actually .emacs on unix), I have
the following:

(setq ess-source-directory
      (lambda ()
        (concat ess-directory "R-source")))

Which allows me to keep my source in a sub-directory of my project
directory.

In unix, it works great.  In windows, which I have just started trying to
use, I get errors like the following:


Error in file(file, "r", encoding = encoding) : 
	unable to open connection
In addition: Warning message:
cannot open file 'c:R-projects
etworkR-source.get.degree.and.dist.stats.R' 

This when my working directory is:
> getwd()
[1] "c:/R-projects/network"

So it looks to me like the single slashes are getting clobbered by escape.
But if I try to set the working directory with doubled windows-style
slashes, getwd() gives me the same thing.  I've looked on the web site, but
have not been able to find a solution (or, perhaps, realize I've found a
solution).

Thanks for any help you can give.

Regards,

Matthew Wiener
Applied Computer Science & Mathematics
Merck Research Laboratories
Rahway, NJ 07065
732-594-5303




More information about the ESS-help mailing list