From 6fad1a3187b2eea364d57d158b658b49efc664d9 Mon Sep 17 00:00:00 2001 From: David Nortes-Martinez <davidnortes@gmail.com> Date: Sat, 22 Jan 2022 10:49:16 +0100 Subject: [PATCH] updated to get always last version of data --- script/classif_bassins.r | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/script/classif_bassins.r b/script/classif_bassins.r index 1b725c6..f6a1f3d 100644 --- a/script/classif_bassins.r +++ b/script/classif_bassins.r @@ -2,8 +2,12 @@ library(sf) library(geau) -# loading dataset -bassin = sf::st_read("/home/dnm/Seafile/data-common/data/topage/bassin_versant/2019/06_RhУne-MВditerranВe_BassinVersantTopographique.shp") +# loading dataset (last version) +file_dir = current_version( + "data-common/data/topage/bassin_versant", + pattern = "^[0-9-]+$" +) +bassin = sf::st_read(file.path(file_dir, "06_RhУne-MВditerranВe_BassinVersantTopographique.shp")) # checking and adjusting crs (if needed) if (!sf::st_crs(bassin) == sf::st_crs(geau::so_ii_limit)) { -- GitLab