Hi I am working on R 2.5.0 on window. I am trying to provide a Hyper-link to the user as a result, I have tried using gtkLinkButton to exercise the facility, however, i am not able to perform the required task, i.e. when I clicked on the LinkButton actually nothing happened. I have gone through the documentation for the same and found that GtkLinkButtonUriFunc is a function which is require to do something with the opening of the given URL. Further, I didn't find any other information regarding this. Following is my code: messlab <- gtkLabelNew(str = "Please wait!", show = TRUE) messwin <- gtkWindowNew(type = NULL, show = TRUE) messwin$Add(messlab) gtkWindowResize(messwin, 250, 60) gtkWindowSetTitle(messwin, "Graph Analysis") .... .... .... fihor <- gtkHPanedNew(show = TRUE) fn <- gtkLinkButtonNewWithLabel("http://cran.r-project.org/", "Result Link!") messwin$Remove(messlab) gtkLabelSetText(messlab, "Result link is ::") gtkPanedAdd1(fihor, messlab) gtkPanedAdd2(fihor, fn) gtkPanedSetPosition(fihor, 100) gtkWindowSetTitle(messwin, "Result Link") gtkWindowResize(messwin, 380, 60) messwin$Add(fihor) I am confused how to make this link workable on click? Your replies/suggestions are important to me. Please suggest solution. Thanks in advance. Divya Sarthi [[alternative HTML version deleted]]
On 7/18/07, d. sarthi maheshwari <samay.sar at gmail.com> wrote:> Hi > > I am working on R 2.5.0 on window. I am trying to provide a Hyper-link to > the user as a result, I have tried using gtkLinkButton to exercise the > facility, however, i am not able to perform the required task, i.e. when I > clicked on the LinkButton actually nothing happened. > > I have gone through the documentation for the same and found that > GtkLinkButtonUriFunc is a function which is require to do something with the > opening of the given URL. Further, I didn't find any other information > regarding this.Have you installed GtkLibs: http://www.omegahat.org/RGtk/Windows/ Senthil
On 7/18/07, d. sarthi maheshwari <samay.sar@gmail.com> wrote:> > Hi > > I am working on R 2.5.0 on window. I am trying to provide a Hyper-link to > the user as a result, I have tried using gtkLinkButton to exercise the > facility, however, i am not able to perform the required task, i.e. when I > clicked on the LinkButton actually nothing happened. > > I have gone through the documentation for the same and found that > GtkLinkButtonUriFunc is a function which is require to do something with > the > opening of the given URL. Further, I didn't find any other information > regarding this.You can find documentation on this by typing help(GtkLinkButtonUriFunc). You might have to scroll down a little since the so-called "user functions" are described in the overview file for a type. This is the signature for that function: GtkLinkButtonUriFunc(button, link, user.data) So you can define such a function like: uri_hook <- function(button, link, data) browseURL(link) and set it with gtkLinkButtonSetUriHook(uri_hook, NULL). A case could be made that this should be set as the default by RGtk2. Michael Following is my code:> > messlab <- gtkLabelNew(str = "Please wait!", show = TRUE) > messwin <- gtkWindowNew(type = NULL, show = TRUE) > messwin$Add(messlab) > gtkWindowResize(messwin, 250, 60) > gtkWindowSetTitle(messwin, "Graph Analysis") > > .... > .... > .... > > fihor <- gtkHPanedNew(show = TRUE) > fn <- gtkLinkButtonNewWithLabel("http://cran.r-project.org/", "Result > Link!") > messwin$Remove(messlab) > gtkLabelSetText(messlab, "Result link is ::") > gtkPanedAdd1(fihor, messlab) > gtkPanedAdd2(fihor, fn) > gtkPanedSetPosition(fihor, 100) > gtkWindowSetTitle(messwin, "Result Link") > gtkWindowResize(messwin, 380, 60) > messwin$Add(fihor) > > I am confused how to make this link workable on click? > > Your replies/suggestions are important to me. Please suggest solution. > > Thanks in advance. > Divya Sarthi > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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 > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Dear list, I am interested in fitting a Generalized Additive Mixed Model with spatially correlated errors to a large, spatially indexed, data set (~4000 observations). My initial analysis was a Generalized Additive Model that included a two dimensional smooth term to model spatially correlated effect (i.e. s(latitude,longitude)). The problem is that the residuals of this model are still spatially correlated, so it seems that I should use a GAMM in which the spatial autocorrelation is modeled explicitly. The problem is that, as stated in the documentation of the mgcv package, my dataset is too large for the gamm function. Is anybody aware of an alternative approach to analyze this data? Julian M. Burgos Fisheries Acoustics Research Lab School of Aquatic and Fishery Science University of Washington 1122 NE Boat Street Seattle, WA 98105 Phone: 206-221-6864