How do you reinstall rgee in RStudio if experiencing errors?

I was really enjoying the rgee package and then something funky was happening in R Studio so I tried to re-install it following the instructions here: https://www.youtube.com/watch?v=_fDhRL_LBdQ.

However, when I get to the library(rgee) line, I get the following error: "Error: package or namespace load failed for ‘rgee’: .onLoad failed in loadNamespace() for 'rgee', details: call: py_module_import(module, convert = convert) error: ModuleNotFoundError: No module named 'ee'"

Has anyone else experienced this and can you advise on a solution? Thank you!

install.packages("sf")
install.packages("reticulate")
install.packages("remote")
remotes::install_github("r-spatial/rgee",force=TRUE)
library(reticulate)
library(rgee)


Read more here: https://stackoverflow.com/questions/67011697/how-do-you-reinstall-rgee-in-rstudio-if-experiencing-errors

Content Attribution

This content was originally published by Sam at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: