From 0e780cba5aa8d5b8c1d3bce9c9233e0349929eb6 Mon Sep 17 00:00:00 2001 From: Kevin Ushey Date: Wed, 28 Feb 2024 21:20:19 -0800 Subject: [PATCH] Release/1.0.5 (#1836) * CRAN release 1.0.5 * initialize cache directory when running tests --- DESCRIPTION | 2 +- NEWS.md | 3 ++- tests/testthat.R | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index e53575fb9..34488e072 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: renv Type: Package Title: Project Environments -Version: 1.0.4.9000 +Version: 1.0.5 Authors@R: c( person("Kevin", "Ushey", role = c("aut", "cre"), email = "kevin@rstudio.com", comment = c(ORCID = "0000-0003-2880-7407")), diff --git a/NEWS.md b/NEWS.md index b7bedd3e9..1f28a5c5b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,5 @@ -# renv (development version) + +# renv 1.0.5 * `renv` now only writes a `.renvignore` file into the cache directory if the cache appears to be part of the current project. diff --git a/tests/testthat.R b/tests/testthat.R index 247b10987..83ff6a228 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -1,4 +1,5 @@ +library(tools) library(testthat) library(renv, warn.conflicts = FALSE) @@ -7,4 +8,9 @@ if (!renv:::renv_tests_supported()) { if (!interactive()) quit(status = 0L) } +if (Sys.info()[["sysname"]] == "Linux") { + cachedir <- R_user_dir("renv", "cache") + dir.create(cachedir, recursive = TRUE, showWarnings = FALSE) +} + test_check("renv")