Skip to content
Prev 2040 / 12125 Next

[R-pkg-devel] How to include examples that run > 5 secs and contain personal info

There are also lots of ways to "mock" examples / tests. You might give
examples that are "not run" in your code, and then if you want to "test"
the functionality, use "testthat" with mocked tests, that don't involve
hitting the website, except for a single case to make sure that particular
function works.

These might be helpful:
https://www.mango-solutions.com/blog/testing-without-the-internet-using-mock-functions

Also, look at the use of this functionality in devtools:
https://github.com/hadley/devtools/search?utf8=%E2%9C%93&q=with_mock&type=

Hope that helps!

-Robert

Robert M Flight, PhD
Bioinformatics Research Associate
Puller of Rabbits from Hats
Research Parasite
Resource Center for Stable Isotope Resolved Metabolomics
Manager, Systems Biology and Omics Integration Journal Club
Markey Cancer Center
CC434 Roach Building
University of Kentucky
Lexington, KY

Twitter: @rmflight
Web: rmflight.github.io
ORCID: http://orcid.org/0000-0001-8141-7788
EM rflight79 at gmail.com
PH 502-509-1827 <(502)%20509-1827>

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. - Ronald Fisher

On Mon, Nov 6, 2017 at 8:58 AM Maxime Turgeon <maxime.turgeon at mail.mcgill.ca>
wrote:

  
  
Message-ID: <CAJLyBTXOyPUM+gVq-NL1bkU6AZ2JOX-z3suiCnbDD-FzSxNUbA@mail.gmail.com>
In-Reply-To: <YTOPR0101MB220194F21A51D5A858F6D171BA500@YTOPR0101MB2201.CANPRD01.PROD.OUTLOOK.COM>