Re: [Rd] A strange behaviour of file.path in Windows? (PR#13119)

From: <>
Date: Fri, 03 Oct 2008 11:27:08 +0100

> If you send these lines of code:
> outdir="c:/pippo"
> file.path(outdir,"pluto.html")
> R replies correctly:
> [1] "c:/pippo/pluto.html"
> But if you change the first steps to:
> outdir=""
> file.path(outdir,"pluto.html")
> R replies (uncorrectly, I think)
> [1] "/c:/pippo/pluto.html"

I don't get the same output as you. Are you sure you haven't changed output somewhere else in your code?


[1] "c:/pippo/pluto.html"


[1] "/pluto.html"

This is under R2.7.2/ Win XP.


Mathematical Sciences Unit

ATTENTION: This message contains privileged and confidential inform...{{dropped:20}} mailing list Received on Fri 03 Oct 2008 - 10:30:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 03 Oct 2008 - 11:30:16 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive