How to set up Automated Tests for Your R Package using testthat

  Рет қаралды 5,101

StatistikinDD

StatistikinDD

Күн бұрын

Пікірлер: 20
@maheshkumarumbarkar3470
@maheshkumarumbarkar3470 2 жыл бұрын
this is really useful tutorial for me🙂
@aliheidary355
@aliheidary355 2 жыл бұрын
thank you for creating this helpful playlist
@raphaelprates1500
@raphaelprates1500 2 жыл бұрын
Thank you! This video is very helpful! Greetings from BR!
@stopznak86
@stopznak86 2 жыл бұрын
Excellent Stuff
@taitai645
@taitai645 Жыл бұрын
Crystal clear
@YEHE-ju7wm
@YEHE-ju7wm 5 ай бұрын
Thank you very much. Do you know how to use test_fun for R package?
@StatistikinDD
@StatistikinDD 5 ай бұрын
Can you give more details? Where do you get stuck?
@YEHE-ju7wm
@YEHE-ju7wm 5 ай бұрын
@@StatistikinDD I previously wrote an article introducing my r package, submitted it to the journal of statistical software, and received the following comment: 2 sample tests are run using TEST_FUN(group1, group2) and no formula version is available (it might be less natural in the multidimensional setting but e.g., Hotelling::hotelling.test implements one which is very clear and easy to use). test_fun is mentioned here, but I am not clearly how to use it
@StatistikinDD
@StatistikinDD 5 ай бұрын
@@YEHE-ju7wm Is TEST_FUN an actual function or maybe just a placeholder for more specific functions?
@ianworthington2324
@ianworthington2324 2 жыл бұрын
Great introduction, many thanks. Only slight issue I found was that ctrl+shft+L appears to be double defined in my shortcuts and doesn't work. No load all menu option either.
@StatistikinDD
@StatistikinDD 2 жыл бұрын
Are you inside an RStudio project that is defined as a package? Have you got the build tab?
@ianworthington2324
@ianworthington2324 2 жыл бұрын
@@StatistikinDD I created it exactly as you described. I do have the build tab.
@StatistikinDD
@StatistikinDD 2 жыл бұрын
@@ianworthington2324 Would you like to share your session info? E.g. OS, RStudio version
@ianworthington2324
@ianworthington2324 2 жыл бұрын
@@StatistikinDD For sure. I'm on Win10, RStudio 2021.09.1 Build 372; "Ghost Orchid" Release (8b9ced18, 2021-11-08) for Windows"
@StatistikinDD
@StatistikinDD 2 жыл бұрын
@@ianworthington2324 Strange. You can manually execute devtools::load_all() in the console. Which menu entries do you see under Build - More?
How to Document a Function in Your R Package
16:28
StatistikinDD
Рет қаралды 10 М.
Demonstration of test driven development in R with testthat (CC269)
31:31
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 14 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 22 МЛН
Why and How to Include a Vignette in Your R Package
12:30
StatistikinDD
Рет қаралды 6 М.
Hadley Wickham | testthat 3.0.0 | RStudio (2020)
56:41
Posit PBC
Рет қаралды 7 М.
What About "..." in R Functions? Magic and Danger
9:39
StatistikinDD
Рет қаралды 1,7 М.
Using renv to track the version of your packages in R (CC229)
20:33
Riffomonas Project
Рет қаралды 7 М.
Getting Started with Unit Testing in R
1:38:12
R-Ladies Philly
Рет қаралды 2,7 М.
R Masterclass | Unit Testing in R
10:46
Shoogle
Рет қаралды 1,2 М.
Mastering {dplyr}: 50+ Data Wrangling Techniques!
17:35
yuzaR Data Science
Рет қаралды 4,8 М.
Demo: How to quickly set up a new R package with {usethis}
10:47
CCT Data Science
Рет қаралды 1 М.
Submitting vroom to CRAN, LIVE!
18:51
Jim Hester
Рет қаралды 2,6 М.
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 14 МЛН