Full_Name: Henrik Bengtsson Version: R v1.4.1 OS: WinMe / Solaris 8 Submission from: (NULL) (217.208.14.137) R -vanilla
info <- file.info("C:/Windows/regedit.exe")
info$isdir
[1] FALSE
info$isdir == FALSE
[1] TRUE But:
info <- file.info("C:/Windows")
info$isdir
[1]TRUE <<< Note the missing space!
info$isdir == TRUE
[1] FALSE
is.logical(info$isdir)
[1] TRUE
as.logical(info$isdir) == TRUE
[1] FALSE
as.logical(as.character(info$isdir)) == TRUE
[1] TRUE I get the same behaviour on Solaris 8. Best Henrik Bengtsson -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._