Re: [R] Behaviour of R with win98 and XP?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 06 Jul 2004 - 02:25:19 EST


What are you doing that creates a file path c://Temp//TempFile.csv? That is not a valid path under Windows: use / not // or, better, use file.path(). As far as I recall NT-based systems accept empty path elements and W98 does not.

If this is really R 1.6.1, you are way overdue for an upgrade.

On Mon, 5 Jul 2004, Richard Müller wrote:

> Dear list,
> I encounter a strange problem: I hav R (1.6.1) installed on a notebook with
> winXP-Prof and a similar installation (same path names etc.) on a desktop
> computer with W98.
> I use rcmd BATCH filename to display graphs from the data stored in filename.
> With R on my notebook everything works fine. I have the same data, the same
> filenames, the same paths on th w98-computer. Here I see just a short
> flickering of the console window and that was it.
> Whe I copy the lines of the script in the console window of R, I get the
> following message:
>
> ... /Code: (snip)....
> file="c://Temp//TempFile.csv"
> inp <- scan(file, sep=";", dec=",", list(0,0,0,0,0,0,0,0,0,0,0,0,0,0), skip =
> 13, nlines = 58)
> ..../code(end) snip......
> The error message:
> Error in file(file, "r"): unable to open connection
> In addition: Warning message:
> cannot open file `c://Temp//TempFile.csv'
>
> Does R behave different unter W98 than it does under XP?

Not in this way, but W98 behaves differently from XP in many ways.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Jul 06 02:28:54 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:43 EST