From 6c7736ffc390127e9bae6376198bea3d59a4e51e Mon Sep 17 00:00:00 2001 From: vsyrgkanis Date: Tue, 30 Jul 2024 02:13:43 -0700 Subject: [PATCH] Update transform-notebooks.yml --- .github/workflows/transform-notebooks.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/transform-notebooks.yml b/.github/workflows/transform-notebooks.yml index 0460d65..4f140a6 100644 --- a/.github/workflows/transform-notebooks.yml +++ b/.github/workflows/transform-notebooks.yml @@ -64,6 +64,10 @@ jobs: fi done echo "Converting .irnb to .Rmd to update the .Rmd version" + # first we delete all Rmd files and regenerate. This will make sure + # that if a .irnb file is deleted then the corresponding .Rmd file + # will also be removed by this script. + rm "$dir"/*.Rmd R -e " files <- list.files(path = '$dir', pattern = '\\\\.irnb$', full.names = TRUE, recursive = FALSE) lapply(files, function(input) {