This commit is contained in:
Martin Folkerts 2023-10-16 20:01:27 +02:00
parent 3ce436b6a0
commit fd67994db8
4 changed files with 1196 additions and 7 deletions

1
.Rprofile Normal file
View file

@ -0,0 +1 @@
source("renv/activate.R")

7
renv/.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
library/
local/
cellar/
lock/
python/
sandbox/
staging/

1180
renv/activate.R Normal file

File diff suppressed because it is too large Load diff

View file

@ -51,13 +51,14 @@ jupyter nbconvert --execute --to script --stdout python_app/Chemba_download.ipyn
deactivate
## Runnen van R scripts
# Kopieer de excel file met harvesting data en maak directory aan indien nodig
#mkdir -p laravel_app/storage/app/harvesting_data
#cp "Current - Pivots planting date and harevsting data.xlsx" "laravel_app/storage/app/harvesting_data/"
#Rscript r_app/1_harvest_data_EcoFarm_v2.R
#cp "pivot_20210625.geojson" "laravel_app/storage/app/Data"
#Rscript r_app/2_CI_data_prep.R
mkdir -p laravel_app/storage/app/harvesting_data
cp "Current - Pivots planting date and harevsting data.xlsx" "laravel_app/storage/app/harvesting_data/"
cp "pivot_20210625.geojson" "laravel_app/storage/app/Data"
cd r_app
Rscript 1_harvest_data_EcoFarm_v2.R
Rscript 2_CI_data_prep.R
#
## Runnen van Rmd bestand
# -e betekent "evalueren" en -i specificeert de input file
#Rscript -e "rmarkdown::render('r_app/CI_Report_dashboard_planet.Rmd', 'all')"
Rscript -e "rmarkdown::render('CI_Report_dashboard_planet.Rmd', 'all')"
cd ..