[social4i size="small" align="align-left"][This article was first published onjakub::sobolewski, and kindly contributed toR-bloggers]. (You can report issue about the content on this pagehere)Want to share your content on R-bloggers?click hereif you have a blog, orhereif you don't.Testing functions that rely on external dependencies is hard.Your tests become slow, fragile, and unreliable when they depend on external APIs, file systems, or services. Worse yet, some dependencies likeSys.time()return values that change constantly, making consistent testing nearly impossible.The solution is simpl
...
继续阅读