knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) options(rmarkdown.html_vignette.check_title=FALSE)
This package requires configuration before going live. As it is based on the RGEE library it has a different environment configuration. The first step is to install the package:
require("rgee") library(LandTrendR)
Before using it, a virtual environment must be generated for the python dependencies to work correctly.
rgee::ee_install() # Install python environment required for GEE
If you have any problems, please clear the virtual environment cache of rgee with the following command
rgee::ee_clean_pyenv() # cleaning previous python environment (use it with precaution)
And restart the R version if the issue persists.
Now, before jumping into LandTrendR, it is required one more step to prepared the environments to GEE.
rgee::ee_Initialize() # Getting credentials from GEE to use their capabilities
With the library installed, it's time to do run the algorithm. By default, the library contains glosbal variables that allows to run the code without any user configuration.
LandTrendR::global_variable() LandTrendR::LtRun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.