[R] bug in file.path?

From: Javier Muñoz <javimunozlara_at_gmail.com>
Date: Thu, 24 Apr 2008 11:34:13 +0200


Hello,

This is what i get in R-2.7.0 (with the completely internal file.path()):

> setwd("c:/jml/Valoración F1/04 BA/")
> filename <- "Valoración F1 PAG.mdb"

> file.path(getwd(), filename)
[1] "c:/jml/Valoración F1/04 BA/Valoración F1 PAG.mdb" <<- worng

> file.path("c:/jml/Valoración F1/04 BA", filename)
[1] "c:/jml/Valoración F1/04 BA/Valoración F1 PAG.mdb" <<- ok

> file.path(paste(getwd()), filename)

[1] "c:/jml/Valoración F1/04 BA/Valoración F1 PAG.mdb" <<- ok

With the older file.path() all of these return "c:/jml/Valoración F1/04 BA/Valoración F1 PAG.mdb"

R version 2.7.0 (2008-04-22)
i386-pc-mingw32

locale:
LC_COLLATE=Spanish_Spain.1252;LC_CTYPE=Spanish_Spain.1252;LC_MONETARY=Spanish_Spain.1252;LC_NUMERIC=C;LC_TIME=Spanish_Spain.1252

attached base packages:
[1] stats graphics grDevices datasets utils methods base

other attached packages:
[1] RODBC_1.2-3


Is this a bug in the new file.path() or can I change something to make this work as before?

Thanks.

Javier.

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Apr 2008 - 09:37: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 Thu 24 Apr 2008 - 11:30:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive