Error caught in R execution: 'there is no package called 'rgdal'" (BioDinamica)

48 views
Skip to first unread message

Felipe Vieira Guimarães

unread,
Jun 5, 2024, 6:05:55 PM6/5/24
to Dinamica EGO
Boa noite,

Não sei se mais alguém está tendo o mesmo problema com o BioDinamica, mas ao tentar rodar a interpolação GIE aparece a mensagem de que não há o pacote rgdal. De fato, o pacote foi descontinuado e as versões mais recentes do R não o possuem.

Como resolver esse problema? Já atualizei o Dinamica-EGO, atualizei o BioDinamica e nada funcionou. 

Agradeço desde já,
Felipe

German San Blas

unread,
Jul 6, 2024, 5:42:43 AM7/6/24
to Dinamica EGO
Hola Felipe,
tenía el mismo problema. Después de rabiar mucho pude solucionarlo. Abajo copio en inglés (por si a alguien más le llega a servir) la forma en la que pude resolver este problema. Espero te funcione, saludos desde Argentina.

Look for the file " Rprofile " (folder: C:\Program Files\Dinamica EGO 7\R\library\base\R)
Open it with the notepad and paste AT THE END the following:

myPaths <- .libPaths()   # get the paths
myPaths <- c(myPaths[2], myPaths[1])  # switch them
.libPaths(myPaths)

Save and close

Open C:\Program Files\Dinamica EGO 7\R\bin\R.exe AS ADMINISTRATOR

Copy and paste one by one the following lines and press enter:

install.packages("remotes")
library(remotes)
install_version("rgdal", version = "1.6-7") ## if it can not download change to version 1.6-5
library(rgdal)

detach("package:sp", unload = TRUE) ## to detach the sp package from the default library
install.packages("sp") ## to install it in the Dinamica R Library

install.packages("rlang")

## install.packages("terra") ## Failed
install_version("terra", version = "1.7-39")


## install.packages("maptools") ## Failed
install_version("maptools", version = "1.1-8")
Reply all
Reply to author
Forward
0 new messages