File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 12
12
^codecov\.yml$
13
13
movies.png
14
14
requirements.txt
15
- document .sh
15
+ run_tests .sh
Original file line number Diff line number Diff line change 6
6
- devel
7
7
8
8
before_script :
9
- - cd vignettes
10
- - ../scripts/translate_examples.py Examples.ipynb _R_Examples.ipynb
11
- - ../scripts/expand_run_magic.py _R_Examples.ipynb Examples_R.ipynb
12
- - cd ..
9
+ - scripts/prepare_for_tests.sh
13
10
14
11
after_success :
15
12
- Rscript -e 'covr::codecov()'
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ ./scripts/prepare_for_tests.sh
3
+ Rscript -e ' devtools::test()'
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ cd vignettes
3
+ ../scripts/translate_examples.py Examples.ipynb _R_Examples.ipynb
4
+ ../scripts/expand_run_magic.py _R_Examples.ipynb Examples_R.ipynb
5
+ mkdir -p ../inst
6
+ cp Examples_R.ipynb ../inst
7
+ cd ..
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ expect_doppelganger = vdiffr::expect_doppelganger
4
4
5
5
test_that(" The examples in documentation work as expected" , {
6
6
7
- examples_notebook = jsonlite :: fromJSON(' ../../vignettes/ Examples_R.ipynb' )
8
- cells = jsonlite :: fromJSON( ' ../../vignettes/Examples_R.ipynb ' ) [[' cells' ]]
7
+ examples_notebook = jsonlite :: fromJSON(system.file( ' Examples_R.ipynb' , package = ' ComplexUpset ' ) )
8
+ cells = examples_notebook [[' cells' ]]
9
9
10
10
example_title = ' Example'
11
11
last_title = example_title
You can’t perform that action at this time.
0 commit comments