[Rd] Bug in Sys.which()?

Dan Tenenbaum dtenenba at fhcrc.org
Mon Nov 28 23:20:28 CET 2011


At a Windows command prompt:
C:\>which ls
/cygdrive/c/Rtools215/bin/ls

C:\>which perl
/cygdrive/c/perl/bin/perl

In R:
> Sys.which(c("ls", "perl"))
                         ls                        perl
"c:\\RTOOLS~3\\bin\\ls.exe"                          ""

Is this expected behavior?

> sessionInfo()
R Under development (unstable) (2011-10-28 r57459)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

loaded via a namespace (and not attached):
[1] tools_2.15.0


Thanks,
Dan



More information about the R-devel mailing list