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

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 20

  • @maheshkumarumbarkar3470
    @maheshkumarumbarkar3470 2 года назад +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

  • @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?

  • @YEHE-ju7wm
    @YEHE-ju7wm 4 месяца назад

    Thank you very much. Do you know how to use test_fun for R package?

    • @StatistikinDD
      @StatistikinDD  4 месяца назад

      Can you give more details? Where do you get stuck?

    • @YEHE-ju7wm
      @YEHE-ju7wm 4 месяца назад

      @@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  4 месяца назад

      @@YEHE-ju7wm Is TEST_FUN an actual function or maybe just a placeholder for more specific functions?