@@ -760,10 +760,10 @@ will look like
760760 source_files :
761761 - tests/
762762 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]
767767
768768 .. note ::
769769 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
810810
811811 test :
812812 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]
815815
816816 In this case, the function will error on any failures by default. Again,
817817the ``PackageName `` here refers to the R library name.
0 commit comments