Installation issues

614 views
Skip to first unread message

Annika

unread,
May 27, 2022, 12:40:06 AM5/27/22
to dartR
Hello,

I recently updated R (version 4.2.0) and Rstudio (2022.02.2 Build 485) and have now had to re-install dartR.

Firstly, install.packages("dartR")" did not work

so I tried a few different variations of:
install.packages("BiocManager")
library(BiocManager)
BiocManager::install(c("SNPRelate", "qvalue"))
install_github("green-striped-gecko/dartR")

which came up with the error:

ERROR: dependency ‘PopGenReport’ is not available for package ‘dartR’

So then I tried:

install_github("green-striped-gecko/PopGenReport") and got the error:

ERROR: dependency ‘rgdal’ is not available for package ‘PopGenReport’

so then I tried "install.packages("rgdal") and got

configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/rgdal’
Warning in install.packages :
  installation of package ‘rgdal’ had non-zero exit status

Read through a few forums and nothing suggested has worked so far...

Is there anyone else having this issue after the new updates? or does anyone have any advice?

Kind regards,

Annika from Australia


Peter Kriesner

unread,
May 27, 2022, 12:55:33 AM5/27/22
to da...@googlegroups.com
Hi Annika,

I'm not sure exactly, but I have the same (recent) versions of R and RStudio installed in both a windows and Linux environment and I have dartR v2.0.3, rgdal v1.5-31 and PopGenReport v3.0.4 also installed and running fine so it should be possible. I did have some sort of similar problem recently after I upgraded to R v4.2 that I was able to resolve but can't recall exactly what I had to do to fix it.

Have you tried updating all other packages? Perhaps try closing RStudio and try updating your R packages from your R console?

Cheers,
Peter (also from Australia)



--
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/d44d8701-9f9a-4aba-99cd-25ec9c00cbb9n%40googlegroups.com.

Jose Luis Mijangos

unread,
May 27, 2022, 1:14:45 AM5/27/22
to dartR
Hi Annika,

Yes, install.packages("dartR") is not working because PopGenReport is having installation issues, which will be fixed very soon, perhaps by Monday.

In the meantime can you try:

devtools::install_github("green-striped-gecko/dartR")

or

devtools::install_github("green-striped-gecko/dartR@beta")

Cheers,
Luis

Bernd.Gruber

unread,
May 27, 2022, 2:05:10 AM5/27/22
to da...@googlegroups.com

Hi Annika,

 

On what kind of system are you running R. I know that linux (and maybe mac) needs gdal installed separately to run rgdal.

 

So maybe that helps.

 

PopGenReport is submitted and will be on CRAN in the coming days I hope.

 

If not possible via cran you can install PopGenReport via

 

devtools::install_github("green-striped-gecko/PopGenReport")

 

Cheers, Bernd

 

 

 

==============================================================================

Dr Bernd Gruber                                              )/_         

                                                         _.--..---"-,--c_    

Professor Ecological Modelling                      \|..'           ._O__)_      

Tel: (02) 6206 3804                         ,=.    _.+   _ \..--( /          

Fax: (02) 6201 2328                           \\.-''_.-' \ (     \_          

Institute for Applied Ecology                  `'''       `\__   /\          

Faculty of Science and Technology                          ')                

University of Canberra   ACT 2601 AUSTRALIA

Email: bernd....@canberra.edu.au

WWW: bernd-gruber

 

Australian Government Higher Education Provider Number CRICOS #00212K 

NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.

==============================================================================

--

Bernd.Gruber

unread,
May 27, 2022, 2:11:03 AM5/27/22
to da...@googlegroups.com

Hi Annika,

 

I checked out of interest. Rgdal has been submitted about two weeks ago to cran but it fails to install on macs.

 

You maybe able to install an older version via

 

require(devtools)

install_version("rgdal", version = "xyz")

 

which version works (if at all you have to try

 

the versions that are available can be found here (under archive):

 

https://cran.r-project.org/web/packages/rgdal/index.html

 

 

or you might try an older mac binary.

 

Cheers, Bernd

 

 

 

 

==============================================================================

Dr Bernd Gruber                                              )/_         

                                                         _.--..---"-,--c_    

Professor Ecological Modelling                      \|..'           ._O__)_     

Tel: (02) 6206 3804                         ,=.    _.+   _ \..--( /          

Fax: (02) 6201 2328                           \\.-''_.-' \ (     \_          

Institute for Applied Ecology                  `'''       `\__   /\          

Faculty of Science and Technology                          ')                

University of Canberra   ACT 2601 AUSTRALIA

Email: bernd....@canberra.edu.au

WWW: bernd-gruber

 

Australian Government Higher Education Provider Number CRICOS #00212K 

NOTICE & DISCLAIMER: This email and any files transmitted with it may contain
confidential or copyright material and are for the attention of the addressee
only. If you have received this email in error please notify us by email
reply and delete it from your system. The University of Canberra accepts
no liability for any damage caused by any virus transmitted by this email.

==============================================================================

 

From: da...@googlegroups.com <da...@googlegroups.com> On Behalf Of Annika
Sent: Friday, 27 May 2022 14:40
To: dartR <da...@googlegroups.com>
Subject: [dartR] Installation issues

 

Hello,

--

Annika

unread,
May 27, 2022, 2:32:45 AM5/27/22
to dartR
Thanks Peter - I will give this a go!

Annika

unread,
May 27, 2022, 2:41:31 AM5/27/22
to dartR
Thanks Luis - got another error

Downloading GitHub repo green-striped-gecko/dartR@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  :
  download from 'https://api.github.com/repos/green-striped-gecko/dartR/tarball/HEAD' failed
 
and same for the beta one too

But will try again Monday after the installation.

Many thanks,
Annika

Annika

unread,
May 27, 2022, 3:07:14 AM5/27/22
to dartR
Thanks Bernd, I am on a mac.

Tried installing a few older versions of rgdal and still getting errors - will try again next week after the updates and report back.

-Annika

Annika

unread,
Jun 17, 2022, 11:36:36 PM6/17/22
to dartR
All sorted since update! Thanks everyone!
Reply all
Reply to author
Forward
0 new messages