@@ -760,10 +760,10 @@ will look like
760
760
source_files :
761
761
- tests/
762
762
commands :
763
- - $R -e "library('PackageName')" # [not win]
764
- - $R -e "testthat::test_file('tests/testthat.R', stop_on_failure=TRUE)" # [not win]
765
- - " \" %R%\" -e \" library('PackageName')\" " # [win]
766
- - " \" %R%\" -e \" testthat::test_file('tests/testthat.R', stop_on_failure=TRUE)\" " # [win]
763
+ - $R -e "library('PackageName')" # [not win]
764
+ - $R -e "testthat::test_file('tests/testthat.R', stop_on_failure=TRUE)" # [not win]
765
+ - " \" %R%\" -e \" library('PackageName')\" " # [win]
766
+ - " \" %R%\" -e \" testthat::test_file('tests/testthat.R', stop_on_failure=TRUE)\" " # [win]
767
767
768
768
.. note ::
769
769
We recommend including a library loading check *before * the ``testthat ``
@@ -810,8 +810,8 @@ the individual tests. In that case, one can instead test the
810
810
811
811
test :
812
812
commands :
813
- - $R -e "testthat::test_dir('tests/testthat/', package='PackageName', load_package='installed')" # [not win]
814
- - " \" %R%\" -e \" testthat::test_dir('tests/testthat/', package='PackageName', load_package='installed')\" " # [win]
813
+ - $R -e "testthat::test_dir('tests/testthat/', package='PackageName', load_package='installed')" # [not win]
814
+ - " \" %R%\" -e \" testthat::test_dir('tests/testthat/', package='PackageName', load_package='installed')\" " # [win]
815
815
816
816
In this case, the function will error on any failures by default. Again,
817
817
the ``PackageName `` here refers to the R library name.
0 commit comments