problem with mixomics, packages in R
0
0
Entering edit mode
18 months ago

Hi, I have to install the R package "mixomics" I use this command to download the package:

if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager")

BiocManager::install("mixOmics")

But this is the result:

byte-compile and prepare package for lazy loading help * installing help indices building package indices ** testing if installed package can be loaded from temporary location Error: package or namespace load failed for 'igraph' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/home/student4/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-igraph/00new/ig raph/libs/igraph.so': libgfortran.so.4: cannot open shared object file: No such file or directory Error: loading failed Execution halted ERROR: loading failed

  • removing '/home/student4/R/x86_64-pc-linux-gnu-library/4.1/igraph' ERROR: dependency 'igraph' is not available for package 'mixOmics'
  • removing '/home/student4/R/x86_64-pc-linux-gnu-library/4.1/mixOmics'

The downloaded source packages are in '/tmp/Rtmp1HKIKk/downloaded_packages' Installation paths not writeable, unable to update packages path: /usr/local/lib/R/site-library packages: ape, assertthat, backports, BH, broom, cli, clipr, coin, colorspace, crayon, dichromat, digest, dplyr, ellipsis, fansi, forcats, foreach, gam, generics, ggplot2, glue, gtable, haven, hms, inline, iterators, jomo, labeling, libcoin, lifecycle, lme4, magrittr, matrixStats, mice, minqa, mitml, modeltools, multcomp, mvtnorm, nloptr, numDeriv, optparse, ordinal, permute, pillar, pkgconfig, plyr, purrr, R6, RColorBrewer, Rcpp, RcppEigen, readr, reshape2, rlang, sandwich, scales, stringi, stringr, TH.data, tibble, tidyr, tidyselect, ucminf, utf8, vctrs, vegan, viridisLite, withr, zoo Warning messages: 1: In install.packages(...) : installation of package 'igraph' had non-zero exit status 2: In install.packages(...) : installation of package 'mixOmics' had non-zero exit status

I tried to download the package ('igraph') but i have the same problem! How can I resolve this problem? my R version is 4.1.2. TKS Stefania

mixomics R igraph • 1.2k views
ADD COMMENT
1
Entering edit mode

You're missing a fortran compiler. sudo apt-get update followed by sudo apt-get install build-essential should include GCC, which should resolve your problem.

ADD REPLY

Login before adding your answer.

Traffic: 1758 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6