Warning in install.packages : il pacchetto ‘gbif’ is not available for this version of R

Good morning, I am trying to install on rstudio the package “gbif” but the program tells me that it is not available for my version, I have tried to install the new version of rstudio but it keeps giving me this error, moreover, I have followed the advice already given to other users but it keeps not working.

Did you mean the rgbif package?

install.packages("rgbif")
2 Likes

yes, I meant to say rgbif

@MarilenarStudio Could you please re-run install.packages("rgbif") in the R console and then copy-paste the full error message to this thread? Also, could you also run getOption("repos") and sessionInfo() and copy-paste the output? It will be helpful to know which CRAN mirror you are downloading from, the version of R, and the operating system.

2 Likes

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installazione pacchetto in ‘C:/Users/39345/AppData/Local/R/win-library/4.4’
(perché ‘lib’ non è specificato)
Warning in install.packages :
il pacchetto ‘gbif’ non è disponibile for this version of R

Una versione di questo pacchetto per la tua versione di R potrebbe essere disponibile altrove,
si veda su

1 Like

CRAN
"https://cran.rstudio.com/"
attr(,"RStudio")
[1] TRUE

sessionInfo()
R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22631)

Matrix products: default

locale:
[1] LC_COLLATE=Italian_Italy.utf8 LC_CTYPE=Italian_Italy.utf8 LC_MONETARY=Italian_Italy.utf8 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.utf8

time zone: Europe/Rome
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.4.0 tools_4.4.0

1 Like

@MarilenarStudio this part of the error message strongly suggests that you typed install.packages("gbif") instead of install.packages("rgbif"). Looking at the list of all CRAN packages, there is no package named "gbif". But as @Gabor noted above, there is a package named "rgbif". A screenshot from the CRAN website:

I have a very similar setup to you: Windows 11 with R 4.3.3. I get the same error message as you when I run install.packages("gbif"), but I am able to install {rgbif} with install.packages("rgbif")

> install.packages("gbif")
Installazione pacchetto in ‘C:/Users/john/AppData/Local/R/win-library/4.3’
(perché ‘lib’ non è specificato)
Warning in install.packages :
  il pacchetto ‘gbif’ non è disponibile for this version of R

Una versione di questo pacchetto per la tua versione di R potrebbe essere disponibile altrove,
si veda su
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

> install.packages("rgbif")
Installazione pacchetto in ‘C:/Users/john/AppData/Local/R/win-library/4.3’
(perché ‘lib’ non è specificato)
si installano anche le dipendenze ‘triebeard’, ‘urltools’, ‘httpcode’, ‘crul’, ‘oai’, ‘wk’

apertura URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/triebeard_0.4.1.zip'
Content type 'application/zip' length 527265 bytes (514 KB)
downloaded 514 KB

apertura URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/urltools_1.7.3.zip'
Content type 'application/zip' length 636395 bytes (621 KB)
downloaded 621 KB

apertura URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/httpcode_0.3.0.zip'
Content type 'application/zip' length 35142 bytes (34 KB)
downloaded 34 KB

apertura URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/crul_1.4.2.zip'
Content type 'application/zip' length 662170 bytes (646 KB)
downloaded 646 KB

apertura URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/oai_0.4.0.zip'
Content type 'application/zip' length 230560 bytes (225 KB)
downloaded 225 KB

apertura URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/wk_0.9.1.zip'
Content type 'application/zip' length 2055825 bytes (2.0 MB)
downloaded 2.0 MB

apertura URL 'https://cran.rstudio.com/bin/windows/contrib/4.3/rgbif_3.8.0.zip'
Content type 'application/zip' length 1403376 bytes (1.3 MB)
downloaded 1.3 MB

pacchetto ‘triebeard’ aperto con successo con controllo somme MD5
pacchetto ‘urltools’ aperto con successo con controllo somme MD5
pacchetto ‘httpcode’ aperto con successo con controllo somme MD5
pacchetto ‘crul’ aperto con successo con controllo somme MD5
pacchetto ‘oai’ aperto con successo con controllo somme MD5
pacchetto ‘wk’ aperto con successo con controllo somme MD5
pacchetto ‘rgbif’ aperto con successo con controllo somme MD5

I pacchetti binari scaricati sono in
	C:\Users\john\AppData\Local\Temp\RtmpUfugn7\downloaded_packages

> getOption("repos")
                       CRAN 
"https://cran.rstudio.com/" 
attr(,"RStudio")
[1] TRUE

> sessionInfo()
R version 4.3.3 (2024-02-29 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22631)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.3.3 tools_4.3.3   
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.