From pego.enrico at tiscali.it  Fri Oct  3 10:05:06 2008
From: pego.enrico at tiscali.it (pego.enrico at tiscali.it)
Date: Fri,  3 Oct 2008 10:05:06 +0200 (CEST)
Subject: [Rd] A strange behaviour of file.path in Windows? (PR#13119)
Message-ID: <20081003080506.4D9A52834611@mail.pubhealth.ku.dk>

Full_Name: Enrico Pegoraro
Version: 2.7.2
OS: Windows (Vista or Xp PRO) Italian
Submission from: (NULL) (87.4.189.202)


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"

This problem influence the R2HTML package too, which, if you send a line as:

targetHtml=HTMLInitFile(outdir="",filename="htmlFile",Title ="Title")

in windows it submit an error because of file.path() error.

Thank you
Enrico



[Rd] A strange behaviour of file.path in Windows? (PR#13119)
pego.enrico at tiscali.it