christiaan pauw | 2 Dec 14:49
Picon

Post hoc tweeking of ggenericwidget?

Hi Everybody

ggenericwidet in the gWidgets package is really handy - you can get a
basic gui for your function in just about no time. Now I just want to
tweek it a little bit. For example: I want to use gvarbrowser to
select x . Can this type of object be manipulated after the initial
creation or must be all be done when it is created? If

In the process of trying to ascertain this, I tried to see the
structure of the object created by ggenericwidget. This is what
happened:
x=ggenericwidget("boxplot.default", container=TRUE)  # example from
the help file
str(x)
      # I am trying to use str() to see the structure of x so that I
can figure out how to manipulate certain aspect

Error in function (classes, fdef, mtable)  :
  unable to find an inherited method for function ".length", for
signature "gGenericWidgetANY", "guiWidgetsToolkitRGtk2"

Is this a problem in my system or is the object not accesable to str() ?

Thanks in advance
Christiaan

> sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

(Continue reading)

j verzani | 2 Dec 21:55
Picon

Re: Post hoc tweeking of ggenericwidget?

christiaan pauw <cjpauw <at> gmail.com> writes:

> 
> Hi Everybody
> 
> ggenericwidet in the gWidgets package is really handy - you can get a
> basic gui for your function in just about no time. Now I just want to
> tweek it a little bit. For example: I want to use gvarbrowser to
> select x . Can this type of object be manipulated after the initial
> creation or must be all be done when it is created? If
> 

The idea behind this widget is there are two steps: one to create
a list specifying how to layout the dialog and the other to make the 
dialog. If you want to modify the object, you modify the list, not the 
dialog. The list can be obtained two ways. See either:

cat(gWidgets:::autogenerategeneric(mean))

or

svalue(ggenericwidget(mean))

The whole thing is pretty limited and you'll bump into its walls
if you try too much, but it can make basic dialogs very simple.
The gformlayout adds a bit more functionality for mapping a list 
into a dialog, but has nothing to autogenerate the list.

--John

(Continue reading)

christiaan pauw | 3 Dec 13:02
Picon

Re: Post hoc tweeking of ggenericwidget?

Thanks John

I have tried another approach after reading your advice. I followed
the example in the traitr vignette and included ggenericwidget inside
a traitr dialog together with a gvarbrowser object. Now you can drop
objects from the wordkspace browser (because in practice I always
froget or misspel something). All that is needed to implement this for
another function is varying the second last line.

regards
Christiaan

require(traitr)
options("guiToolkit"="RGtk2")

tt=stats:::t.test.default

d.dlg <- aDialog(items=list(),
title="generic dialog",
help_string="You're on your own here. Good night and good luck",
buttons=NULL
)

g=aGroup(attr=list(size=c(500,500)))
g2=aGroup()

g.view <- aGroup(
aContainer(
aFrame(aContainer(g2),label="Write var name or drop var for x")
),
(Continue reading)

Sang Chul Choi | 21 Dec 20:36
Picon
Favicon

Any script to package a built R binary to a Mac OS X installer?

Hi,

I am wondering how "R.app GUI 1.41 for Mac OS X" is built from the source code, and am messing around about the R
project web site.

My question is if there are some scripts for packaging built R and R-GUI binaries to a Mac OS X install package
(I was able to build R and R-GUI, but I could not find a way to package them for installation). If so, where
could I find it?  I'm new to either building R from scratch or packaging a Mac installation.  When I was
reading "R for Mac OS X Developer's Page" at http://r.research.att.com/, I thought that there must be
some scripts for packaging to create an installation file, such as R-2.14-branch-leopard.pkg in the web
site at http://r.research.att.com/.  I could not find any of such script or helpful information.

Thank you,

SangChul
Uwe Ligges | 22 Dec 09:00
Picon
Favicon

Re: Any script to package a built R binary to a Mac OS X installer?

The sig list for Macs is probably more appropriate since Simon Urbanek - 
who builds that - is very active on that list.

Best,
Uwe Ligges

On 21.12.2011 20:36, Sang Chul Choi wrote:
> Hi,
>
> I am wondering how "R.app GUI 1.41 for Mac OS X" is built from the source code, and am messing around about the
R project web site.
>
> My question is if there are some scripts for packaging built R and R-GUI binaries to a Mac OS X install
package (I was able to build R and R-GUI, but I could not find a way to package them for installation). If so,
where could I find it?  I'm new to either building R from scratch or packaging a Mac installation.  When I was
reading "R for Mac OS X Developer's Page" at http://r.research.att.com/, I thought that there must be
some scripts for packaging to create an installation file, such as R-2.14-branch-leopard.pkg in the web
site at http://r.research.att.com/.  I could not find any of such script or helpful information.
>
> Thank you,
>
> SangChul
>
> _______________________________________________
> R-SIG-GUI mailing list
> R-SIG-GUI <at> r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-gui
Sang Chul Choi | 22 Dec 14:39
Picon
Favicon

Re: Any script to package a built R binary to a Mac OS X installer?

Thank you! I did not realize it at the time when I posted the message.  Thankfully, two people have helped me
find the answer to the question.

And, I'm sorry for the "HTML" message. I hope that this message is in plain text.

Thank you,

SangChul

On Dec 22, 2011, at 3:00 AM, Uwe Ligges wrote:

> The sig list for Macs is probably more appropriate since Simon Urbanek - who builds that - is very active on
that list.
> 
> Best,
> Uwe Ligges
> 
> 
> On 21.12.2011 20:36, Sang Chul Choi wrote:
>> Hi,
>> 
>> I am wondering how "R.app GUI 1.41 for Mac OS X" is built from the source code, and am messing around about
the R project web site.
>> 
>> My question is if there are some scripts for packaging built R and R-GUI binaries to a Mac OS X install
package (I was able to build R and R-GUI, but I could not find a way to package them for installation). If so,
where could I find it?  I'm new to either building R from scratch or packaging a Mac installation.  When I was
reading "R for Mac OS X Developer's Page" at http://r.research.att.com/, I thought that there must be
some scripts for packaging to create an installation file, such as R-2.14-branch-leopard.pkg in the web
site at http://r.research.att.com/.  I could not find any of such script or helpful information.
(Continue reading)


Gmane