Skip to content

interactive file choosing in Linux?

3 messages · Derek Eder, Romain Francois, Juergen Rose

#
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).
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."
#
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:

  
    
#
Am Dienstag, den 26.05.2009, 21:05 +0200 schrieb Romain Francois:
I suppose it should be