File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 80
80
working-directory : examples
81
81
run : |
82
82
Rscript _run.R
83
- [ -z "$( git diff)" ] || (git diff && echo "Examples output changed" 1>&2 && exit 1)
83
+ git diff --quiet || (echo "Examples output changed" 1>&2 && exit 1)
84
84
85
85
- name : Test coverage
86
86
if : success() && env.USE_R_CODECOV == 'true'
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ for (f in litedown:::find_input('.')) {
7
7
m = file.mtime(c(f , f2 <- xfun :: with_ext(f , ' .md' )))
8
8
if (! is.na(m [2 ]) && m [1 ] < m [2 ]) next
9
9
}
10
+ # example 005 uses |>, which is available only in R >= 4.1.0
11
+ if (grepl(' /005-' , f ) && getRversion() < ' 4.1.0' ) next
10
12
xfun :: Rscript_call(function (. ) {
11
13
options(width = 80 , litedown.jsd_resolve = FALSE )
12
14
if (xfun :: file_ext(. ) == ' md' ) litedown :: mark(. ) else litedown :: fuse(. , ' .md' )
You can’t perform that action at this time.
0 commit comments