brianstock / MixSIARgui

A graphical user interface (GUI) for MixSIAR, a framework for Bayesian mixing models in R
GNU General Public License v3.0
3 stars 0 forks source link

Suggestion: update Readme Installation Instructions #2

Open theribennett opened 3 years ago

theribennett commented 3 years ago

The idea is to increase the subdivision of the installation steps so that users can follow along in the process and identify exactly which steps of the process are not working as intended. These steps are also expanded to include instructions on how to install depreciated / archival packages.

Installation

The GUI...

On windows

  1. Install R 3.6.3. Only installing the 64 bit version may save some heartache with RGtk2 32 bit issues...

  2. Install JAGS

  3. Open R

  4. Install MixSIAR

    install.packages("MixSIAR", dependencies=TRUE)
  5. Install nondepreciated GTK+ dependent packages

    install.packages(c("RGtk2", "devtools"))
  6. Install depreciated package gWidgets

    install.packages("https://cran.r-project.org/src/contrib/Archive/gWidgets/gWidgets_0.0-54.tar.gz", repos=NULL, type="source")
  7. Load RGtk2. You will be prompted to install GTK+. Follow the automatic prompts and do not interrupt the GTK+ installation!:

    library(RGtk2)
  8. Restart R and run

    library(RGtk2)
  9. Install depreciated package gWidgetsRGtk2

    install.packages("cairoDevice", dependencies=TRUE) # is a dependency of gWidgetsRGtk2
    install.packages("https://cran.r-project.org/src/contrib/Archive/gWidgetsRGtk2/gWidgetsRGtk2_0.0-83.tar.gz", repos=NULL, type="source")
  10. Install MixSIAR gui interface and skip update step with a line return

    devtools::install_github("brianstock/MixSIARgui", dependencies=TRUE)

    There may be an error message about needing RTools 35. Don't worry. This error can be ignored if the next step works fine.

  11. Load MixSIAR and run gui

    library(MixSIARgui)
    mixsiar_gui()
Pakillo commented 3 years ago

Thanks for sharing! Can confirm these instructions worked on a laptop with Windows 10. The tip about installing only the 64-bit version of R 3.6.3 looks quite important to avoid further hassle

Chengcheng-139666 commented 3 years ago

library(MixSIARgui)

mixsiar_gui() Loading required package: gWidgetsRGtk2 Loading required package: gWidgets Loading required package: cairoDevice Error in if (n.effects > 0) { : 参数长度为零

When I chose "Load source data", there is something wrong which showed upside. How can I fix it?