-
Help
DescriptionI encountered a situation where I had edited a function under R/ and without testing, it broke the pipeline. I debugged and then reverted the edit. So, I need tests. I don't want to create a new package to test, however. I do believe the functions under R/ belong in the targets project. Is the best course of action to create a testthat folder and during development run testthat::test_dir(".")? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If it works in your case, then by all means. The whole setup should be more flexible than if you were writing a formal R package (i.e. the test suite could be just a bunch of scripts in |
Beta Was this translation helpful? Give feedback.
If it works in your case, then by all means. The whole setup should be more flexible than if you were writing a formal R package (i.e. the test suite could be just a bunch of scripts in
tests/
instead oftests/testthat/
).