Table of Contents
Dependencies #
- R version >= 3.6.0
- R packages: Rcpp, RcppArmadillo, RcppDist, dplyr, magrittr, readr, parallel
1. Install devtools if necessary #
install.packages('devtools')
2. Install METEOR #
devtools::install_github('Liye222/METEOR')
3. Load package #
library(METEOR)
4. Some possible issues when installing the package, especially on the MacOS system #
(1)Cannot find tools necessary when using R in the MacOS system.
Error: Failed to install 'METEOR' from GitHub:
Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
possible solution: in R, type the code options(buildtools.check = function(action) TRUE ), see the discussion about this error, link
(2)library not found for -lgfortran when using R in the MacOS system.
ld: library not found for -lgfortran
It seems the gfortran is not well installed on the MacOS system. Please check this link for the gfortran installation to see if it helps.