πŸ”΄ Prework

In this section, you will install all the R packages that will be used in this workshop, just follow the steps set out in the following lines of code.

Observation
  • Remember it’s necessary to have previously installed R, Rtools, and Rstudio in your desktop.

  • Rtools is only necessary for Windows OS users. You can download Rtools here πŸ“₯.

πŸ”΄ Set up my Rstudio enviroment

Open Rstudio, then copy and paste the R code into the console and finally use enter.

pkgs <- c(
  "mapview","sf", "tidyverse",
  "rgee","tidyrgee","tidyterra",
  "ggspatial", "terra","patchwork",
  "raster","geojsonio","viridis",
  "stars","mlr3","mlr3spatiotempcv"
  )
install.packages(pkgs)

πŸ”΄ Additional documentation

rgee package need some extra configuration in your machine, in the next section you learning how set up and registration of credentials.

Observation
  • Remember it’s necessary to register a account in google earth engine with a gmail account.
  • To register on Google Earth Engine, you only need answer a few short questions.

For the installation of rgee dependencies, use the following function (this function can only be used once):

rgee::ee_install()

Finally, with your gmail account verified, you can authenticate and initialise the Earth Engine R API in the following way.