Hi, I fail to find "choose.dir()" in my current R install (see below)? Didn't that exist at some point? How to achieve "file.choose()" equivalent functionality for directories? Thanks for any hints, Joh> sessionInfo()R version 2.11.1 (2010-05-31) x86_64-pc-linux-gnu locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 [9] LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rkward_0.5.3 loaded via a namespace (and not attached): [1] tools_2.11.1
OK. Just checked and "choose.file"/"choose.dir" exists in the windows version - apparently not in the linux one ... does anybody have a nice platform-agnostic solution for this? Thanks, Joh Johannes Graumann wrote:> Hi, > > I fail to find "choose.dir()" in my current R install (see below)? Didn't > that exist at some point? How to achieve "file.choose()" equivalent > functionality for directories? > > Thanks for any hints, Joh > >> sessionInfo() > R version 2.11.1 (2010-05-31) > x86_64-pc-linux-gnu > > locale: > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 > [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 > [7] LC_PAPER=en_US.UTF-8 LC_NAME=en_US.UTF-8 > [9] LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 > [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > other attached packages: > [1] rkward_0.5.3 > > loaded via a namespace (and not attached): > [1] tools_2.11.1
Dear Joh, On Wed, Sep 8, 2010 at 3:18 AM, Johannes Graumann <johannes_graumann at web.de> wrote:> OK. Just checked and "choose.file"/"choose.dir" exists in the windows > version - apparently not in the linux one ... does anybody have a nice > platform-agnostic solution for this? > > Thanks, Joh >[snip] Have a look at tk_choose.files in the tcltk package. library(tcltk) ?tk_choose.files Good luck, Jay *************************************************** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX VoIP: gjkerns at ekiga.net E-mail: gkerns at ysu.edu http://people.ysu.edu/~gkerns/