EVOLUTION-MANAGER
Edit File: use_testthat.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Sets up overall testing infrastructure</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for use_testthat {usethis}"><tr><td>use_testthat {usethis}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Sets up overall testing infrastructure</h2> <h3>Description</h3> <p>Creates <code style="white-space: pre;">tests/testthat/</code>, <code>tests/testthat.R</code>, and adds the testthat package to the Suggests field. Learn more in <a href="https://r-pkgs.org/tests.html">https://r-pkgs.org/tests.html</a> </p> <h3>Usage</h3> <pre> use_testthat(edition = NULL, parallel = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>edition</code></td> <td> <p>testthat edition to use. Defaults to the latest edition, i.e. the major version number of the currently installed testthat.</p> </td></tr> <tr valign="top"><td><code>parallel</code></td> <td> <p>Should tests be run in parallel? This feature appeared in testthat 3.0.0; see <a href="https://testthat.r-lib.org/articles/parallel.html">https://testthat.r-lib.org/articles/parallel.html</a> for details and caveats.</p> </td></tr> </table> <h3>See Also</h3> <p><code><a href="use_r.html">use_test()</a></code> to create individual test files </p> <h3>Examples</h3> <pre> ## Not run: use_testthat() use_test() use_test("something-management") ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>usethis</em> version 2.1.6 <a href="00Index.html">Index</a>]</div> </body></html>