Please update your R (and probably your RGtk2: you did not tell us its
version), as the posting guide asked you to do before posting.
On Sun, 23 Oct 2011, Aref Nammari wrote:
> Hello,
>
> I hope this is the right place to ask for help with a problem I am
> having with RGtk2 installation with R on Windows XP.
> I am running R 2.11.1 and have installed the package RGtk2 from CRAN.
As a binary package, I guess, but please tell us (it matters).
> I also have GTK 2.10.11 installed as well as GTK2-runtime 2.22.0. I
> have added the environment variable GTK_PATH and set its value to the
> root location where GTK is installed.
But you need the Gtk+ bin directory in your PATH. Environment
variable GTK_PATH is only needed when RGtk2 is installed from the
sources.
Which Gtk+ you need in your path depends on the version of RGtk2 you
have and how you installed it. For current binary versions, see
http://cran.r-project.org/bin/windows/contrib/2.13/@ReadMe
> When I try to run RGtk2 in R by
> typing library(RGtk2) a popup dialog appears with the following error
> message:
>
> The procedure entry point gdk_app_launch_context_get_type could not be
> located in the dynamic link library libgdk-win32-2.0-0.dll
>
> In the R window I get :
>
> Error in inDL(x, as.logical(local), as.logical(now), ...) :
> unable to load shared library 'C:/PROGRA~1/R/R-211~1.1/library/RGtk2/
> libs/RGtk2.dll':
> LoadLibrary failure: The specified procedure could not be found.
>
> Failed to load RGtk2 dynamic library, attempting to install it.
> Error : .onLoad failed in loadNamespace() for 'RGtk2', details:
> call: install_all()
> error: This platform is not yet supported by the automatic
> installer. Please install GTK+ manually, if necessary. See:
>
http://www.gtk.org<http://www.google.com/url?sa=D&q=http://www.gtk.org&usg=AFQjCNFJhHsdogCdq8O8Ki9DXcvOrWW0oA>
> Error: package/namespace load failed for 'RGtk2'
>
> Any help in figuring out what could be the problem is greatly
> appreciated.
>
> Cheers,
>
> [[alternative HTML version deleted]]
Please do as the posting guide asked of you and not send HTML.
> ______________________________________________
> R-help at 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.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595