Giter Site home page Giter Site logo

MODISTsp Installation about modistsp HOT 7 CLOSED

ropensci avatar ropensci commented on May 27, 2024
MODISTsp Installation

from modistsp.

Comments (7)

lbusett avatar lbusett commented on May 27, 2024

Hi Effie,

can you please try this:

  1. Remove packages "gWidgets", "gWidgetsRGtk2" and "RGtk2" using remove.packages or from RStudio
  2. Remove package MODIStsp in the same way
  3. update.packages()
  4. Close and reopen RStudio
  5. install.packages("gWidgetsRGtk2"). Install GTK+ when asked - kill RStudio if necessary
  6. reopen RStudio
  7. library(gWidgetsRGtk2)

if gWidgetsRGtk2 loads correctly, then you should be ok and you can retry MODIStsp installations.

Otherwise please reply to this with the error message you get.

Lorenzo

Lorenzo

from modistsp.

effie-pav avatar effie-pav commented on May 27, 2024

Hi Lorenzo,
thank you so much for the immediate response. The error message reads:

library("gWidgetsRGtk2", lib.loc="D:/R-3.2.3/R-3.3.3/library")
Loading required package: RGtk2
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'D:/R-3.2.3/R-3.3.3/library/RGtk2/libs/x64/RGtk2.dll':
LoadLibrary failure: The specified module could not be found.

trying URL 'http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip'
Content type 'application/zip' length 25830230 bytes (24.6 MB)
downloaded 24.6 MB

Learn more about GTK+ at http://www.gtk.org
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
Loading required package: gWidgets
Loading required package: cairoDevice
Warning messages:
1: Failed to load RGtk2 dynamic library, attempting to install it.
2: In dir.create(config_path, recursive = TRUE) :
'D:\R-3.2.3\R-3.3.3\library\RGtk2\gtk\x64\etc\gtk-2.0' already exists

GTK+ indeed exists, and the path is updated.

from modistsp.

lbusett avatar lbusett commented on May 27, 2024

ok. What happens if you now close and reopen RStudio and try to load gWidgetsRGtk again ?

from modistsp.

effie-pav avatar effie-pav commented on May 27, 2024

The packages are loading, but MODIStsp installation is interrupted at
*** arch -i386
With the message:
The procedure entry point deflateSetHeader could not be located in the dynamic link library zlib1.dll

The same happens when I load gWidgets2RGtk. I do close/reopen R, and the system as well.Do you think this has to do with the package and its dependencies, or with the architecture of the installation? (Would it help uninstalling and reinstalling R from scratch?)
Thank you again for the support..!

from modistsp.

lbusett avatar lbusett commented on May 27, 2024

ok... that's slightly different from what happens usually.

Can you try to follow instructions reported here:

https://www.stat.auckland.ac.nz/%7Ekimihia/rgtk2

, starting from "Download the GTK+ all-in-one bundle. I downloaded version 2.22 for Windows 64-bit."
?

from modistsp.

effie-pav avatar effie-pav commented on May 27, 2024

Yes!, it worked very nicely. The page you referred to is very useful. The only thing not working was the link to the bundle. I downloaded the GTK+ bundle from http://www.tarnyko.net/dl/gtk.htm (apparently my system had issues with the GTK+ Windows Runtime Environment Installers).
To successfully install MODISTsp I also had to manually (re)install the following packages:
foreach, Rcpp, R.utils, stringi, magrittr, and zoo.
Thank you again for the support, and for taking the effort and time to put this tool online-it is great, and much needed!

from modistsp.

lbusett avatar lbusett commented on May 27, 2024

Ok, glad that it worked !

By the way: the issue about having to manually install some packages is due to a bug in install_github that can usually be solved by installing the github version of devtools:

On a fresh R session:

devtools::install_github("hadley/devtools")

Lorenzo

from modistsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.