Skip to content

Commit 98127c7

Browse files
fix errors
1 parent 611c689 commit 98127c7

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: styler
33
Title: Non-Invasive Pretty Printing of R Code
4-
Version: 1.10.0.9000
4+
Version: 1.10.1
55
Authors@R:
66
c(person(given = "Kirill",
77
family = "Müller",

NEWS.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
<!-- NEWS.md is maintained by https://cynkra.github.io/fledge, do not edit -->
1+
# styler 1.10.1
2+
3+
This release was requested by CRAN due to accidentally populating a user cache while building vignettes for R >= 4.3.0.
4+
5+
* Code quality improvements (#1122).
6+
* Bump JamesIves/github-pages-deploy-action from 4.4.1 to 4.4.2 (#1123).
7+
8+
Thanks to everyone who contributed to this release: [&#x0040;olivroy](https://github.com/olivroy) and [&#x0040;krlmlr](https://github.com/krlmlr).
9+
210
# styler 1.10.0
311

412
This release contains speed-ups between 20% and 40% depending on your use case

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ remove_old_cache_files <- function() {
7676
path_version_specific,
7777
full.names = TRUE, recursive = TRUE
7878
)
79-
date_boundary <- Sys.time() - as.difftime(6, unit = "days")
79+
date_boundary <- Sys.time() - as.difftime(6L, unit = "days")
8080
file.remove(
8181
all_cached[file.info(all_cached)$mtime < date_boundary]
8282
)

tests/testthat/test-cache-clean-up.R

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ test_that("styler tests did not use R.cache in user root", {
88
})
99

1010
test_that("clear Cache", {
11-
# if R CMD CHECK is running, R.cache root is set to a temp
11+
# if R CMD CHECK is detected, R.cache root is set to a temp
1212
# directory by default.
1313
# https://github.com/HenrikBengtsson/R.cache/commit/c7ac171f15f035674346d5504049c38cf07c268f
14-
# Hence, this clean up won't clean up the user directory that Ripley is
15-
# concerned about, but only some temp directory.
16-
# On the other hand, it seems completely unclear how the user cache even gets
17-
# populated.
18-
# skip_during_parallel()
14+
# Hence, this clean up won't clean up the user directory.
15+
skip_during_parallel()
1916
cache_path <- R.cache::getCachePath("styler")
2017
R.cache::clearCache(cache_path, recursive = TRUE, prompt = FALSE)
21-
# rlang::abort(paste0('cache path:', cache_path))
2218
skip_on_cran()
2319
skip_on_covr()
2420
expect_true(

0 commit comments

Comments
 (0)