1 Comment
Guest *Di Da* @ 2017-11-02 21:00:23 originally posted:
Hi, Xie Yihui,
I am new to testing, and I have looked into your package. I feel confused and hope you can help me.
I am not sure what exactly is your package doing. One function "assert()" combines two R built-in functions. The other function "test_pkg()" allows us not type ":::". I mean where is the testing part? Or is your package somewhat like a test framework? How does your package automatically run user-written test cases (not R CMD check) ?
I appreciate your help!
It may be easier to understand if you take a look at some real examples:
https://github.com/yihui/xaringan/tree/master/tests
https://github.com/rstudio/bookdown/tree/master/tests
https://github.com/rstudio/blogdown/tree/master/tests
https://github.com/yihui/knitr/tree/master/tests
Originally posted on 2017-11-03 03:49:13
Sign in to join the discussion
Sign in with GitHub