Re: [Rd] Link between Qt GUI and R

2011-09-13 Thread jverzani
Barry Rowlingson  lancaster.ac.uk> writes:

> 
> On Mon, Sep 12, 2011 at 2:00 AM, typhoong  
> eurus-energy.com> wrote:
> > hi everyone, thanks for all the tips.
> >
> >
> > Barry, can you tell me why you think PyQT is by far the best way?
> 
>  I said that conditional on you knowing or wanting to learn Python.
> Python interacts with Qt in much the same way as C++ interacts with
> it, but without the annoying compile and link steps of C++ (Python is
> an interpreted language). Qt was designed to work with C++, and so
> development with Python and C++ should be faster than most other Qt
> interfaces.
> 
> So if you already know Python, and your R scripts are already in the
> can ready to go, there's less point learning, or even constructing,
> some R-Qt interface than using the well-established and robust
> Python-Qt interface.
> 
> Barry
> 
> 


If you don't know python, there is no need to construct an R-Qt interface, there
already is one. Take a look at: https://github.com/ggobi/ for the package 
qtbase and friends. There is some great work there.  (Simon referenced this
 earlier in this thread) For a simpler interface, there is also the gWidgetsQt 
package on r-forge (https://r-forge.r-project.org/R/?group_id=761).

--John

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Extending [ method to S4 class and drop argument (PR#9211)

2006-09-08 Thread jverzani
Full_Name: John Verzani
Version: 2.4.0 alpha (2006-09-05 r39134)
OS: linux, gentoo 2.6.17
Submission from: (NULL) (163.238.43.26)


When extending the "[" method to a new S4 class, the default value for the drop
argument is not being found. Here is a small example:

setClass("test",representation(x="character"))
setMethod("[","test",function(x,i,j,...,drop=TRUE) {print(i);print(drop)})
a = new("test",x="fred")
a[1]

resulting in:

[1] 1
Error in print(drop) : argument "drop" is missing, with no default

I'm expecting TRUE for the value of drop. That's correct isn't?

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel