[R] interactive file choosing in Linux?

Romain Francois romain.francois at dbmail.com
Tue May 26 21:05:55 CEST 2009


Hi,

You might like tk_choose.files from package tcltk. This comes with R but 
your system needs to be capable enough:

 > capabilities( )["tcktk"]
 > require( tcltk )
 > tk_choose.files

Romain

Derek Eder wrote:
> I am used to using the [R] function choose.files() for interactive file selection in MS-Windows.
>
> What is the comparable function in Linux?   I expected the function file.choose() to display similar behavior, i.e., a graphical interface diplaying a file listing, but all I seem to get is a "text input prompt".   This does not seem correct.
>
>         > file.choose()
>         Enter file name: 
>
> I have seen gfile() function in the gWidgets library - but isn't there anything native? 
>
> Thank you!
>
>
> Derek Eder
>
>
>
>
>
> Linux:  Ubuntu 9.04,  Gnome, [R] running in terminal or ESS GTK_Emacs (doesn't make any difference to the above).
>
>
>   
>> version               _                          
>>     
> platform       i486-pc-linux-gnu          
> arch           i486                       
> os             linux-gnu                  
> system         i486, linux-gnu            
> status                                    
> major          2                          
> minor          8.1                        
> year           2008                       
> month          12                         
> day            22                         
> svn rev        47281                      
> language       R                          
> version.string R version 2.8.1 (2008-12-22)
>
>
>
> Derek N. Eder
> Gothenburg University
> Vigilance and Neurocognition Laboratory
> Medicinaregatan 8B
> Gothenburg Sweden
> SE 405 30
>
> tlf (031) 342-8261
> mobil 0704 915 714
>  
>
> "All created things are impermanent — Strive diligently."
>
> ______________________________________________
> 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.
>
>
>   


-- 
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr




More information about the R-help mailing list