tladeras’s avatartladeras’s Twitter Archive—№ 7,208

  1. Things about #testthat: remembering to use namespaces for external packages. I was getting errors in my tests, and getting vague errors, wondering why the test wasn't working. It came down to the use of dplyr::across() in one of my functions. Hard to figure out.
    1. …in reply to @tladeras
      I tend to do informal testing before I actually write the tests, and forgotten I used library(dplyr) in my environment. I should just probably skip to the formal tests next time. #rstats
      1. …in reply to @tladeras
        So, I guess this is a reminder that I should do less informal testing, because using an across() without the namespace is an insidious kind of error.