[Rd] tk_choose.filesn () (tcltk) intolerant of whitespace (PR#13875)

derek.eder at lungall.gu.se derek.eder at lungall.gu.se
Thu Aug 6 14:55:12 CEST 2009


Full_Name: Derek Eder
Version: 2.9.1
OS: x86_64-pc-linux-gnu 
Submission from: (NULL) (130.241.91.3)


Function "tk_choose.files" (tcltk) is intolerant of filenames which contain
whitespace.
In that case, the return value is character vector of whitespace separated
chunks. See example below.


Thank you,


Derek Eder



>     myChoice <- tk_choose.files(filter = Filters, multi=FALSE)


      # select file: "tk_choose.files test _file .r"   # note white space!



> myChoice
[1] "/home/derek/projects/VINKLA/STUDIES/Opanayiko/R/tk_choose.files"
[2] "test"                                                            
[3] "_file"                                                           
[4] ".r"  



# OK, I can work around this
> paste(myChoice,collapse=" ")
[1] "{/home/derek/projects/VINKLA/STUDIES/Opanayiko/R/tk_choose.files test _file
.r}"



 


> version
               _                           
platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          2                           
minor          9.1                         
year           2009                        
month          06                          
day            26                          
svn rev        48839                       
language       R                           
version.string R version 2.9.1 (2009-06-26)


Package: tcltk
Version: 2.9.1
Priority: base
Title: Tcl/Tk Interface
Author: R Development Core Team
Maintainer: R Core Team <R-core at r-project.org>
Description: Interface and language bindings to Tcl/Tk GUI elements
License: Part of R 2.9.1
Built: R 2.9.1; x86_64-pc-linux-gnu; 2009-06-30 19:02:28 UTC; unix



More information about the R-devel mailing list