From d145e56a48405193843084f319ba93580efb1a58 Mon Sep 17 00:00:00 2001 From: Pascal Sauer <156898545+pascal-sauer@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:16:15 +0100 Subject: [PATCH 1/2] copy.mode = F --- DESCRIPTION | 2 +- R/conditionalCopy.R | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index fc58d36f..d41c0768 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: lucode2 Title: Code Manipulation and Analysis Tools -Version: 0.49.2 +Version: 0.49.2.9001 Date: 2024-12-20 Authors@R: c( person("Jan Philipp", "Dietrich", , "dietrich@pik-potsdam.de", role = c("aut", "cre"), diff --git a/R/conditionalCopy.R b/R/conditionalCopy.R index 61e9211b..7507f3e2 100644 --- a/R/conditionalCopy.R +++ b/R/conditionalCopy.R @@ -26,7 +26,8 @@ conditionalCopy <- function(relativePath, nameInInstExtdata = basename(relativeP } file.copy(relativePath, instExtdataPath, overwrite = TRUE) } else { - file.copy(system.file("extdata", nameInInstExtdata, package = "lucode2"), relativePath, overwrite = TRUE) + file.copy(system.file("extdata", nameInInstExtdata, package = "lucode2"), relativePath, + overwrite = TRUE, copy.mode = FALSE) } return(invisible(NULL)) } From 9edf651f92fe4554256e31cbf8e7a5f8e788405f Mon Sep 17 00:00:00 2001 From: Pascal Sauer <156898545+pascal-sauer@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:27:39 +0100 Subject: [PATCH 2/2] build --- .buildlibrary | 2 +- CITATION.cff | 4 ++-- DESCRIPTION | 4 ++-- R/conditionalCopy.R | 1 + README.md | 10 +++++----- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.buildlibrary b/.buildlibrary index 7008036f..adff9298 100644 --- a/.buildlibrary +++ b/.buildlibrary @@ -1,4 +1,4 @@ -ValidationKey: '9877884' +ValidationKey: '9909793' AutocreateReadme: yes AutocreateCITATION: yes AcceptedWarnings: diff --git a/CITATION.cff b/CITATION.cff index 1fad0f83..6e6f162f 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,8 +2,8 @@ cff-version: 1.2.0 message: If you use this software, please cite it using the metadata from this file. type: software title: 'lucode2: Code Manipulation and Analysis Tools' -version: 0.49.2 -date-released: '2024-12-20' +version: 0.49.3 +date-released: '2025-01-13' abstract: A collection of tools which allow to manipulate and analyze code. authors: - family-names: Dietrich diff --git a/DESCRIPTION b/DESCRIPTION index d41c0768..09446014 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Type: Package Package: lucode2 Title: Code Manipulation and Analysis Tools -Version: 0.49.2.9001 -Date: 2024-12-20 +Version: 0.49.3 +Date: 2025-01-13 Authors@R: c( person("Jan Philipp", "Dietrich", , "dietrich@pik-potsdam.de", role = c("aut", "cre"), comment = c(affiliation = "Potsdam Institute for Climate Impact Research", ORCID = "0000-0002-4309-6431")), diff --git a/R/conditionalCopy.R b/R/conditionalCopy.R index 7507f3e2..d3b5627f 100644 --- a/R/conditionalCopy.R +++ b/R/conditionalCopy.R @@ -26,6 +26,7 @@ conditionalCopy <- function(relativePath, nameInInstExtdata = basename(relativeP } file.copy(relativePath, instExtdataPath, overwrite = TRUE) } else { + # copy.mode = FALSE because in case lucode2 is loaded from renv cache where files have no write permission file.copy(system.file("extdata", nameInInstExtdata, package = "lucode2"), relativePath, overwrite = TRUE, copy.mode = FALSE) } diff --git a/README.md b/README.md index c1bff2a5..97ac4a23 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Code Manipulation and Analysis Tools -R package **lucode2**, version **0.49.2** +R package **lucode2**, version **0.49.3** [![CRAN status](https://www.r-pkg.org/badges/version/lucode2)](https://cran.r-project.org/package=lucode2) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4389418.svg)](https://doi.org/10.5281/zenodo.4389418) [![R build status](https://github.com/pik-piam/lucode2/workflows/check/badge.svg)](https://github.com/pik-piam/lucode2/actions) [![codecov](https://codecov.io/gh/pik-piam/lucode2/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/lucode2) [![r-universe](https://pik-piam.r-universe.dev/badges/lucode2)](https://pik-piam.r-universe.dev/builds) @@ -39,7 +39,7 @@ In case of questions / problems please contact Jan Philipp Dietrich , Version: 0.49.2, . +Dietrich J, Sauer P, Klein D, Giannousakis A, Bonsch M, Bodirsky B, Baumstark L, Richters O, Pflüger M (2025). "lucode2: Code Manipulation and Analysis Tools." doi:10.5281/zenodo.4389418 , Version: 0.49.3, . A BibTeX entry for LaTeX users is @@ -48,9 +48,9 @@ A BibTeX entry for LaTeX users is title = {lucode2: Code Manipulation and Analysis Tools}, author = {Jan Philipp Dietrich and Pascal Sauer and David Klein and Anastasis Giannousakis and Markus Bonsch and Benjamin Leon Bodirsky and Lavinia Baumstark and Oliver Richters and Mika Pflüger}, doi = {10.5281/zenodo.4389418}, - date = {2024-12-20}, - year = {2024}, + date = {2025-01-13}, + year = {2025}, url = {https://github.com/pik-piam/lucode2}, - note = {Version: 0.49.2}, + note = {Version: 0.49.3}, } ```