Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
library(ForestForesight) 

# Make sure you have DATArun ff_FOLDERenvironment inpreviously, config.yml
setif to wherenot you savehave yourto data, and make sure that the config.yml file is in your working directory 

assign the ff_folder yourself

ff_folder <- Sys.getenv("DATA_FOLDER") 

template_folder <- list.files(file.path(ff_folder, "preprocessed", "input"), 
pattern = "^[0-9]{2}[NS]_[0-9]{3}[EW]$", full.names = TRUE)[1] 

template_raster <- rast(list.files(template_folder, 
pattern = "\\.tif$", full.names = TRUE)[1]) 

...