Installation problems (linux)

57 views
Skip to first unread message

Luana Sousa

unread,
Oct 26, 2022, 3:25:52 PM10/26/22
to dartR
Hey, I'm trying to install the DartR in a Ubuntu 16, I updated the R to 4.2, but the R studio is 1.4

I tried all the methods I could find:

install.packages("devtools")
library(devtools)
install_github("zhengxwen/gdsfmt")
install_github("zhengxwen/SNPRelate")

Up to here it was ok, but:
install.packages("dartR")
devtools::install_github("green-striped-gecko/dartR")
devtools::install_github("green-striped-gecko/dartR@beta")

All the options resulted in "also installing the dependencies ‘dismo’, ‘gdistance’, ‘terra’, ‘PopGenReport’, ‘raster’" but never being able to install them.
I've tried to install these packages separately, but also they did not install.

I've attached the installation log for "install.packages(" dartR")", all attempts yield the same result.

Do you have some ideas that could help me?

ps: I installed it easily on my windows.

Best,
Luana

log_dart.txt

Jose Luis Mijangos

unread,
Oct 26, 2022, 3:35:49 PM10/26/22
to dartR
Hi Luana,

Could you please try with our installation tutorial:


Cheers,
Luis

Luana Sousa

unread,
Nov 1, 2022, 8:41:48 AM11/1/22
to dartR
I had already tried this tutorial. But now I could finally install it!
For someone having the same problem, I had to install the dependencies one by one:

devtools::install_github("green-striped-gecko/dartR@beta")
remotes::install_github("rspatial/terra")
install.packages('dismo', repos='https://rspatial.r-universe.dev')
install_github("agrdatasci/gdistance")
install.packages("PopGenReport")
install_github("rspatial/raster")

Best,
Luana

Carlo Pacioni

unread,
Nov 1, 2022, 10:36:42 PM11/1/22
to da...@googlegroups.com
Thanks Luana,
I have just tested Luis' instructions on Ubuntu 20 and once the libraries he recommends (i.e. 'sudo apt install libcurl4-openssl-dev libssl-dev libfontconfig1-dev libxml2-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev gdal-bin proj-bin libgdal-dev libproj-dev libgmp3-dev jags') are installed, dartR got installed with no prob. I suspect that you may have a problem because you were working on Ubuntu 16. 

Cheers,
carlo


--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/170757e4-806a-437e-89cd-4aaa70a1243bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages