Hi Henrique,

Thanks for your advice which works for me.

B.R.
Stephen L




________________________________
From: Henrique Dallazuanna <www...@gmail.com>

Cc: R-help@r-project.org
Sent: Wed, September 15, 2010 10:24:01 PM
Subject: Re: [R] About choosing file

You can try tcltk:

library(tcltk)
tk_choose.files()




Hi Uwe,
>
>
>> (assuming R-2.11.1)
>Yes
>
>
>> Test01=read.table(file.choose(), header=TRUE)
>Enter file name:
>
>My problem here is ;
>the file is NOT on /home/user directory.  I need to browse for it.
>
>> list.files()
>[1] "boxplot.pdf"     "Desktop"         "FourPlots01.png" "hist.png"
>[5] "jranke_cran.asc" "M-x R"           "M-x R~"
>
>
>B.R.
>Stephen L
>
>
>
>
>
>
>
>----- Original Message ----
>From: Uwe Ligges <lig...@statistik.tu-dortmund.de>

>Cc: R-help@r-project.org
>Sent: Wed, September 15, 2010 9:20:48 PM
>Subject: Re: [R] About choosing file
>
>
>
>On 26.08.2010 09:50, Stephen Liu wrote:
>> Hi folks,
>>
>>
>> Following command only works on Windows
>>> Test01=read.table(file.choose(), header=TRUE)
>>
>> It popup open a dialog box for choosing file.
>>
>>
>> But it doesn't work on Linux (Ubuntu);
>>> Test01=read.table(file.choose(), header=TRUE)
>> Enter file name:
>>
>>
>> Entering file name doesn't work.  Please advise.  TIA
>
>
>(assuming R-2.11.1)
>
>Why not? What happens? What is the error message? Which file did you
>specify and does
>list.files()
>lists the file? Please show the output.
>
>Best,
>Uwe Ligges
>
>>
>> B.R.
>> Stephen L
>>
>>
>>
>>
>> ______________________________________________
>> R-help@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.
>
>
>
>
>______________________________________________
>R-help@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.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to