[R] the svDialogs package

Marco Zucchelli marco.zucchelli at biosci.ki.se
Wed Jun 22 14:27:58 CEST 2005


Hello Philippe,

Thanks for the explanation!

  did you change the guidlgopen as well?

Now I get :

file <- guiDlgOpen(title= "Open case/control 
file",defaultFile="",defaultDir="",multi=FALSE, filters = c("All files 
(*.*)", "*.*"))

gdata <- read.table(file,as.is=T,header=T)

Error in file(file, "r") : unable to open connection
In addition: Warning message:
cannot open file 'C:/ProgramFiles/R/Work/dcdc2.txt'


and the reason is that

> file
[1] "C:/ProgramFiles/R/Work/dcdc2.txt"

so the space between Program and Files has disappeared and the path is wrong

correct path would be "C:/Program Files/R/Work/dcdc2.txt"

Marco

----- Original Message ----- 
From: "Philippe Grosjean" <phgrosjean at sciviews.org>
To: "Marco Zucchelli" <marco.zucchelli at biosci.ki.se>
Cc: "R-help" <r-help at stat.math.ethz.ch>
Sent: Friday, June 10, 2005 7:36 AM
Subject: Re: [R] the svDialogs package


> Hello Marco,
>
> For the first error, the message is clear: "not implemented yet!".
> Several dialog boxes are not done yet, but the functions already exist,
> mainly as "placeholders" for future development.
>
> Regarding the second, there was a bug in the function (corrected in
> SciViews 0.8-6 that I have just uploaded to CRAN), and also a
> misunderstanding of the its first argument: "list". This argument should
> be a charactger vector containing the list of items... but not a list!
> So, the correct code is:
>
> > m_list <- 1:10
> > res <- guiDlgList(m_list) # Need SciViews 0.8-6!
> > res
>
> Note that guiDlgXXX() functions return results _invisibly_. So, you need
> to assign its result to a variable, or use something like:
>
> > (guiDlgList(m_list))
>
> to see the result printed at the console.
>
> Best,
>
> Philippe
>
> ..............................................<°}))><........
>  ) ) ) ) )
> ( ( ( ( (    Prof. Philippe Grosjean
>  ) ) ) ) )
> ( ( ( ( (    Numerical Ecology of Aquatic Systems
>  ) ) ) ) )   Mons-Hainaut University, Pentagone (3D08)
> ( ( ( ( (    Academie Universitaire Wallonie-Bruxelles
>  ) ) ) ) )   8, av du Champ de Mars, 7000 Mons, Belgium
> ( ( ( ( (
>  ) ) ) ) )   phone: + 32.65.37.34.97, fax: + 32.65.37.30.54
> ( ( ( ( (    email: Philippe.Grosjean at umh.ac.be
>  ) ) ) ) )
> ( ( ( ( (    web:   http://www.umh.ac.be/~econum
>  ) ) ) ) )          http://www.sciviews.org
> ( ( ( ( (
> ..............................................................
>
> Marco Zucchelli wrote:
>> Hi Philippe and R community,
>>
>>  I am trying to use some functions from the svDialogs package but I get 
>> some werid errors I do not understand:
>>
>>
>>>library(svDialogs)
>>
>>
>>>m_list <- as.list(1:10)
>>
>>
>>
>>>guiDlgDoubleList(m_list, m_list)
>>
>> Error in guiDlgDoubleList(m_list, m_list) :
>>         Not yet implemented!
>>
>>
>>
>>>guiDlgList(m_list)
>>
>> Error in guiDlgList(m_list) : couldn't find function "guiSetFonts.tcltk"
>>
>>
>>
>>
>> Am I doing anything wrong ?? Do I need some other package?
>>
>>
>>
>> Marco
>>
>>
>>
>>
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! 
>> http://www.R-project.org/posting-guide.html
>>
>>
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list