Thank you for your help, I installed r-cran-adegenet:
sudo apt install r-cran-adegenet
but I can't figure out how to use it now. Could you please explain how to call the R package installed in this way? Neither library ("r-cran-adegenet") nor library ("adegenet") work. Sorry for my unawareness.
In fact, I would rather install adegenet in the second way, and at the same time install all the other packages I need. I successfully installed libudunits2-dev and libgdal-dev via apt:
sudo apt-get install libudunits2-dev
sudo apt-get install libgdal-dev
But for some reason, it still failed to install adegenet, units, sf, and others:
install.packages("adegenet", dep = TRUE)
also installing the dependencies ‘units’, ‘diffobj’, ‘sf’, ‘waldo’, ‘spdep’, ‘dplyr’, ‘pegas’, ‘hierfstat’, ‘testthat’, ‘poppr’
Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘units’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘diffobj’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘dplyr’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘sf’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘waldo’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘spdep’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘testthat’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘adegenet’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘pegas’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘hierfstat’ had non-zero exit status”Warning message in install.packages("adegenet", dep = TRUE):
“installation of package ‘poppr’ had non-zero exit status”Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Can you please tell me what I'm doing wrong? Thank you!
Could you please trying
install.packages(units)(orinstall.packages(dplyr)) and show us the output from the console?Thank you for your consideration, that's the output of
install.packages("dplyr"):I have tried to install
dplyrusingdevtools, but installation ofdevtoolscauses a lot of other warnings:This is very sad, because I really need
dplyrand other regular packages(