R: "testing if the installed package can be downloaded"

I have my own R package. I am trying to install it on a Windows machine (64 bit R if that matters). It's ok with a few warnings, the package is installed, then R wants to check if the installed package can be installed. Then I get the following message:

Warning: Failed to load RGtk2 dynamic library, attempting to install it.

Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip

 If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable

 IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN

 Error in inDL(x, as.logical(local), as.logical(now), ...) : 

 can not load shared object '<not relevant>/R/win-library/3.0/RGtk2/libs/i386/RGtk2.dll':

 LoadLibrary failure: the specified module could not be found

      

The message is printed several times several times. Then the following happens:

Error : .onLoad failed in loadNamespace() for 'RGtk2', details:

 call: NULL

 error: evaluation nested too deeply: infinite recursion / options(expressions=)?

 Error : package 'RGtk2' could not be loaded

      

R then removes the already installed package. If the installation process is interrupted after the package indexes have been created, but before the installer uninstalls the package, the package can be downloaded with library

and works fine. Other packages that require RGtk2 also work fine.

There seems to be no such issue on Linux machines, although I haven't tested it extensively.

Why is this happening?

PS: Just to be clear: I am aware of the -no-test-load option for R CMD INSTALL. If this parameter is used, everything is fine. So the question is not how to get the package to work. The question is more like "what happens during a test load that does not occur with a regular load".

+3


source to share





All Articles