Skip to content

Commit

Permalink
Merge pull request #221 from pascal-sauer/master
Browse files Browse the repository at this point in the history
fix renv cleanup error during check
  • Loading branch information
pascal-sauer authored Dec 20, 2024
2 parents bba6b6e + 87f799c commit aedf620
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '9856825'
ValidationKey: '9877884'
AutocreateReadme: yes
AutocreateCITATION: yes
AcceptedWarnings:
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -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.1
date-released: '2024-12-18'
version: 0.49.2
date-released: '2024-12-20'
abstract: A collection of tools which allow to manipulate and analyze code.
authors:
- family-names: Dietrich
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: lucode2
Title: Code Manipulation and Analysis Tools
Version: 0.49.1
Date: 2024-12-18
Version: 0.49.2
Date: 2024-12-20
Authors@R: c(
person("Jan Philipp", "Dietrich", , "[email protected]", role = c("aut", "cre"),
comment = c(affiliation = "Potsdam Institute for Climate Impact Research", ORCID = "0000-0002-4309-6431")),
Expand Down
7 changes: 7 additions & 0 deletions R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ verifyLinter <- function(allowLinterWarnings = FALSE) {
#' @export
verifyCheck <- function(cran, acceptedWarnings, acceptedNotes) {
withr::local_options(crayon.enabled = TRUE)
if (!requireNamespace("renv", quietly = TRUE) || is.null(renv::project())) {
# during "checking whether the package can be loaded" renv tries to cleanup
# RENV_PATHS_ROOT with "find . -type d -empty -delete" which takes a long time
# and currently fails with ".../.cache.lock’: Permission denied", so unset
# RENV_PATHS_ROOT tmeporarily
withr::local_envvar(RENV_PATHS_ROOT = NA)
}
# _R_CHECK_SYSTEM_CLOCK_ = 0 should prevent "unable to verify current time" when time server is down
checkResults <- devtools::check(document = FALSE, cran = cran, args = c("--timings", "--no-tests"),
env_vars = c(NOT_CRAN = "true", `_R_CHECK_SYSTEM_CLOCK_` = "0"),
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Code Manipulation and Analysis Tools

R package **lucode2**, version **0.49.1**
R package **lucode2**, version **0.49.2**

[![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)

Expand Down Expand Up @@ -39,7 +39,7 @@ In case of questions / problems please contact Jan Philipp Dietrich <dietrich@pi

To cite package **lucode2** in publications use:

Dietrich J, Sauer P, Klein D, Giannousakis A, Bonsch M, Bodirsky B, Baumstark L, Richters O, Pflüger M (2024). "lucode2: Code Manipulation and Analysis Tools." doi:10.5281/zenodo.4389418 <https://doi.org/10.5281/zenodo.4389418>, Version: 0.49.1, <https://github.com/pik-piam/lucode2>.
Dietrich J, Sauer P, Klein D, Giannousakis A, Bonsch M, Bodirsky B, Baumstark L, Richters O, Pflüger M (2024). "lucode2: Code Manipulation and Analysis Tools." doi:10.5281/zenodo.4389418 <https://doi.org/10.5281/zenodo.4389418>, Version: 0.49.2, <https://github.com/pik-piam/lucode2>.

A BibTeX entry for LaTeX users is

Expand All @@ -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-18},
date = {2024-12-20},
year = {2024},
url = {https://github.com/pik-piam/lucode2},
note = {Version: 0.49.1},
note = {Version: 0.49.2},
}
```

0 comments on commit aedf620

Please sign in to comment.