From 3ce436b6a00b5c09a324a3a299e55e54e1792cc8 Mon Sep 17 00:00:00 2001 From: Martin Folkerts Date: Mon, 16 Oct 2023 17:34:11 +0200 Subject: [PATCH] added renv::restore() and renv::activate() --- r_app/1_harvest_data_EcoFarm_v2.R | 2 ++ r_app/2_CI_data_prep.R | 5 +++++ r_app/CI_report_dashboard_planet.Rmd | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/r_app/1_harvest_data_EcoFarm_v2.R b/r_app/1_harvest_data_EcoFarm_v2.R index 80cb946..06e6771 100644 --- a/r_app/1_harvest_data_EcoFarm_v2.R +++ b/r_app/1_harvest_data_EcoFarm_v2.R @@ -1,3 +1,5 @@ +renv::activate() +renv::restore() #download excel with planting dates library(googledrive) library(here) diff --git a/r_app/2_CI_data_prep.R b/r_app/2_CI_data_prep.R index 33975a3..a69af96 100644 --- a/r_app/2_CI_data_prep.R +++ b/r_app/2_CI_data_prep.R @@ -1,3 +1,7 @@ +# activeer de renv omgeving; +renv::activate() +renv::restore() + library(here) library(sf) library(tidyverse) @@ -8,6 +12,7 @@ library(exactextractr) library(CIprep) + laravel_storage_dir <- here("laravel_app/storage/app") #preparing directories planet_tif_folder <- here(laravel_storage_dir, "chemba/merged_tif") diff --git a/r_app/CI_report_dashboard_planet.Rmd b/r_app/CI_report_dashboard_planet.Rmd index b627153..8867796 100644 --- a/r_app/CI_report_dashboard_planet.Rmd +++ b/r_app/CI_report_dashboard_planet.Rmd @@ -8,6 +8,14 @@ editor_options: chunk_output_type: console --- +```{r setup, include=FALSE} +# Activeer de renv omgeving +renv::activate() + +# Optioneel: Herstel de omgeving als dat nodig is +# Je kunt dit commentaar geven als je het normaal niet wilt uitvoeren +# renv::restore() +``` ```{r libraries, message=FALSE, warning=FALSE, include=FALSE} library(here)