Thanks for your reply Michael, gwindow() command does work. and here is my sessionInfo
> gwindow() guiWidget of type: gWindowRGtk for toolkit: guiWidgetsToolkitRGtk2 *(opens a window)* > sessionInfo() R version 2.14.1 (2011-12-22) Platform: i486-pc-linux-gnu (32-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=C LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] tcltk grid stats graphics grDevices utils [7] datasets methods base other attached packages: [1] RGtk2_2.20.21 gridBase_0.4-4 [3] gWidgetstcltk_0.0-48 digest_0.5.1 [5] tcltk2_1.1-5 playwith_0.9-53 [7] gWidgetsRGtk2_0.0-78 gWidgets_0.0-47 [9] cairoDevice_2.19 lattice_0.20-0 loaded via a namespace (and not attached): [1] tools_2.14.1 again any advice appreciated. Maha On Fri, Jan 20, 2012 at 3:05 AM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > Hmmmm....can you give session info (after loading playwith)? I'm able > to get that code to work...also -- can you get the basic RGtk > functions (like gwindow() ) to work? > > Michael > > On Thu, Jan 19, 2012 at 5:28 PM, Farhat Maha <mar...@gmail.com> wrote: > > Hello, I managed to install playwith package and all its prerequisites. > My > > R version is R 2.14: > > > > R version 2.14.1 (2011-12-22) > > Copyright (C) 2011 The R Foundation for Statistical Computing > > ISBN 3-900051-07-0 > > Platform: i486-pc-linux-gnu (32-bit) > > > > All my packages were updated, and recently installed. When I attempt > > to use the command playwith I get the following error message: > > > > > >> library(playwith) > > Loading required package: lattice > > Loading required package: cairoDevice > > Loading required package: gWidgetsRGtk2 > > Loading required package: gWidgets > > Loading required package: grid > > > >> playwith(plot(1:10)) > > Error in playwith(plot(1:10)) : attempt to apply non-function > > > >> playwith(xyplot(Income ~ log(Population / Area), > > + data = data.frame(state.x77), groups = state.region, > > + type = c("p", "smooth"), span = 1, auto.key = TRUE, > > + xlab = "Population density, 1974 (log scale)", > > + ylab = "Income per capita, 1974") > > + ) > > Error in playwith(xyplot(Income ~ log(Population/Area), data = > > data.frame(state.x77), : > > attempt to apply non-function > > > >> interactive() > > [1] TRUE > > > >> autoplay(on = TRUE, lattice.on = TRUE, base.on = TRUE, grid.on = TRUE, > ask = FALSE) > > Automatic `playwith` for Lattice graphics is now ON. > > Automatic `playwith` for base graphics is now ON. > > Automatic `playwith` for grid graphics is now ON. > >> plot(1:10) > > Error in playwith(plot(1:10), envir = <environment>) : > > attempt to apply non-function > > Error in plot.xy(xy, type, ...) : plot.new has not been called yet > > > > > > > > Any advice about why it is not working. > > thanks > > Maha > > > > [[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. > [[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.