Re: [R] choose folder interactively

2012-11-28 Thread jim holtman
A simple way is to use 'choose.file' to select a file in the directory that you want and then use 'dirname' to strip off the file name: > dirname('a/b/c') [1] "a/b" On Wed, Nov 28, 2012 at 7:59 AM, Ivan Calandra wrote: > Thank you Duncan for your answer > > I would like to be able to write an

Re: [R] choose folder interactively

2012-11-28 Thread Ivan Calandra
Thank you Duncan for your answer I would like to be able to write an equivalent for MacOS, but I'm not that skilled... I don't know how to find how choose.dir() is written. And then, I'm even less sure to be able to find the equivalent... Would you mind giving my some hints? Thank you in adv

Re: [R] choose folder interactively

2012-11-28 Thread Duncan Murdoch
On 12-11-28 7:39 AM, Ivan Calandra wrote: Dear users, I am looking for a function to choose a folder interactively, just like file.choose() but for a folder. I have found tcltk::tk_choose.dir() but R hangs when I try to do anything and I have to force exit. I've tried to reinstall tcltk with in

[R] choose folder interactively

2012-11-28 Thread Ivan Calandra
Dear users, I am looking for a function to choose a folder interactively, just like file.choose() but for a folder. I have found tcltk::tk_choose.dir() but R hangs when I try to do anything and I have to force exit. I've tried to reinstall tcltk with install.packages(), but "package ‘tcltk’