Skip to content

Commit af45228

Browse files
Merge pull request #1300 from GoekeLab/bugfix_pre-commit-ci
Fix the pre-commit workflow
2 parents 319fb36 + 8a3b0f0 commit af45228

4 files changed

Lines changed: 35 additions & 28 deletions

File tree

‎.github/workflows/pre-commit.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828
- name: Setup system dependencies
29-
run: |
30-
sudo apt install cmake libcurl4-openssl-dev libnode-dev pandoc
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y cmake libcurl4-openssl-dev libnode-dev pandoc
3132
- name: Set up Python
3233
uses: actions/setup-python@v6.0.0
3334
with:

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ Collate:
106106
'vertical.R'
107107
'visit.R'
108108
'zzz.R'
109-
Config/roxygen2/version: 8.0.0
109+
Config/roxygen2/version: 8.1.0

‎NAMESPACE‎

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,33 @@ export(tidyverse_math_token_spacing)
3232
export(tidyverse_reindention)
3333
export(tidyverse_style)
3434
importFrom(magrittr,"%>%")
35-
importFrom(purrr,compact)
36-
importFrom(purrr,flatten)
37-
importFrom(purrr,flatten_chr)
38-
importFrom(purrr,flatten_int)
39-
importFrom(purrr,map)
40-
importFrom(purrr,map2)
41-
importFrom(purrr,map2_chr)
42-
importFrom(purrr,map_at)
43-
importFrom(purrr,map_chr)
44-
importFrom(purrr,map_int)
45-
importFrom(purrr,map_lgl)
46-
importFrom(purrr,partial)
47-
importFrom(purrr,pmap)
48-
importFrom(purrr,pwalk)
49-
importFrom(rlang,"%||%")
50-
importFrom(rlang,abort)
51-
importFrom(rlang,check_installed)
52-
importFrom(rlang,is_installed)
53-
importFrom(rlang,seq2)
54-
importFrom(rlang,set_names)
55-
importFrom(rlang,warn)
56-
importFrom(vctrs,vec_rbind)
57-
importFrom(vctrs,vec_slice)
58-
importFrom(vctrs,vec_split)
35+
importFrom(purrr,
36+
compact,
37+
flatten,
38+
flatten_chr,
39+
flatten_int,
40+
map,
41+
map2,
42+
map2_chr,
43+
map_at,
44+
map_chr,
45+
map_int,
46+
map_lgl,
47+
partial,
48+
pmap,
49+
pwalk
50+
)
51+
importFrom(rlang,
52+
"%||%",
53+
abort,
54+
check_installed,
55+
is_installed,
56+
seq2,
57+
set_names,
58+
warn
59+
)
60+
importFrom(vctrs,
61+
vec_rbind,
62+
vec_slice,
63+
vec_split
64+
)

‎R/utils.R‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ensure_last_n_empty <- function(x, n = 1L) {
2828
return("")
2929
}
3030
x <- c(x, "", "")
31-
x <- x[seq(1L, length(x) - which(rev(x) != "")[1L] + 1L)]
31+
x <- x[seq_len(length(x) - which(rev(x) != "")[1L] + 1L)]
3232
c(x, rep("", n))
3333
}
3434

0 commit comments

Comments
 (0)