File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
- name : lint
2
-
1
+ # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2
+ # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3
3
on :
4
4
push :
5
5
branches : [main, master, development]
6
6
pull_request :
7
- branches : [main, master, development]
7
+
8
+ name : lint.yaml
9
+
10
+ permissions : read-all
8
11
9
12
jobs :
10
13
lint :
20
23
21
24
- uses : r-lib/actions/setup-r-dependencies@v2
22
25
with :
23
- extra-packages : lintr, local::.
26
+ extra-packages : any::lintr, local::.
27
+ needs : lint
24
28
25
29
- name : Lint
26
30
run : lintr::lint_package()
27
31
shell : Rscript {0}
32
+ env :
33
+ LINTR_ERROR_ON_LINT : true
Original file line number Diff line number Diff line change 26
26
# ' @export
27
27
28
28
29
- use_afcharts <- function (default_colour = afcharts :: af_colour_values [" dark-blue" ],
30
- ... ) {
29
+ use_afcharts <- function (
30
+ default_colour = afcharts :: af_colour_values [" dark-blue" ],
31
+ ... ) {
31
32
32
33
# Use afcharts theme ----
33
34
@@ -53,7 +54,7 @@ use_afcharts <- function(default_colour = afcharts::af_colour_values["dark-blue"
53
54
54
55
# Update default values with those passed to use_afcharts
55
56
new_values <- c(... )
56
- for (i in 1 : length (new_values )) {
57
+ for (i in seq_along (new_values )) {
57
58
default <- replace(default ,
58
59
which(names(default ) == names(new_values )[i ]),
59
60
new_values [i ])
You can’t perform that action at this time.
0 commit comments