Ubuntu 18安装RVAideMemoire报错:mixOmics缺失及R3.4.4兼容问题求助
Got it, let's work through this installation problem step by step. The root issue here is that R 3.4.4 is a pretty old release (it came out back in 2018), and Ubuntu 18.04's default repositories don't have the compatible versions of dependencies like mixOmics that RVAideMemoire needs. Here are a few solid workarounds to get this installed:
1. Install Compatible Dependencies First
Since R 3.4.4 pairs with Bioconductor version 3.6, we need to install the mixOmics build that works with this stack:
- First, install a legacy BiocManager version that supports R 3.4.4 (newer BiocManager releases drop support for old R versions):
install.packages("https://cran.r-project.org/src/contrib/Archive/BiocManager/BiocManager_1.30.19.tar.gz", repos = NULL, type="source") - Set Bioconductor to the 3.6 release (matching your R version):
BiocManager::install(version = "3.6") - Install the compatible
mixOmicspackage:BiocManager::install("mixOmics", version = "3.6")
2. Install a Legacy Version of RVAideMemoire
Newer RVAideMemoire releases require newer R versions, so you'll need an older build that's compatible with R 3.4.4. Use this command to install the archived version:
install.packages("https://cran.r-project.org/src/contrib/Archive/RVAideMemoire/RVAideMemoire_0.9-77.tar.gz", repos = NULL, type="source")
Note: Version 0.9-77 is confirmed to work with R 3.4.x—avoid newer releases as they'll throw dependency mismatch errors.
3. Fix Source Compilation Errors
If you hit errors during source installation, make sure you have the required system libraries installed on Ubuntu 18.04. These are needed to compile R packages from source:
sudo apt-get update && sudo apt-get install r-base-dev libcurl4-openssl-dev libssl-dev libxml2-dev
Quick Explanation
R and its package ecosystem move fast—most modern package updates drop support for older R versions like 3.4.4. By targeting archived, compatible versions of both mixOmics and RVAideMemoire, you're aligning the package versions with your specific R and OS setup, which resolves the dependency conflicts.
内容的提问来源于stack exchange,提问作者Juan Acosta

