Skip to content

Commit 3c2b889

Browse files
Merge branch 'main' into f2554-cyclocomp-optional
2 parents cd54c31 + 871fee3 commit 3c2b889

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/check-all-examples.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
on:
1111
push:
12-
branches: [main, master]
12+
branches: main
1313
pull_request:
14-
branches: [main, master]
14+
branches: main
1515

1616
name: check-all-examples
1717

@@ -32,11 +32,13 @@ jobs:
3232
with:
3333
pak-version: devel
3434
extra-packages: |
35-
any::devtools
35+
any::pkgload
3636
local::.
3737
3838
- name: Run examples
3939
run: |
4040
options(crayon.enabled = TRUE)
41-
devtools::run_examples(fresh = TRUE, run_dontrun = TRUE, run_donttest = TRUE)
41+
pkgload::load_all()
42+
setwd("man")
43+
for (rd in list.files(pattern = "\\.Rd")) pkgload::run_example(rd, run_dontrun = TRUE, run_donttest = TRUE, quiet = TRUE)
4244
shell: Rscript {0}

R/addins.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ addin_lint <- function() {
55
}
66
filename <- rstudioapi::getSourceEditorContext()
77
if (filename$path == "") {
8-
return("Current source has no path. Please save before continue")
8+
warning("Current source has no path. Please save before continuing.", call. = FALSE)
9+
return(flatten_lints(list()))
910
}
1011

1112
lint(filename$path)

0 commit comments

Comments
 (0)