Other packages > Find by keyword >

testthat  

Unit Testing for R
View on CRAN: Click here


Download and install testthat package within the R console
Install from CRAN:
install.packages("testthat")

Install from Github:
library("remotes")
install_github("cran/testthat")

Install by package version:
library("remotes")
install_version("testthat", "3.2.1.1")



Attach the package and use:
library("testthat")
Maintained by
Hadley Wickham
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2009-11-30
Latest Update: 2023-07-06
Description:
Software testing is important, but, in part because it is frustrating and boring, many of us avoid it. 'testthat' is a testing framework for R that is easy to learn and use, and integrates with your existing 'workflow'.
How to cite:
Hadley Wickham (2009). testthat: Unit Testing for R. R package version 3.2.1.1, https://cran.r-project.org/web/packages/testthat
Previous versions and publish date:
0.1.1 (2009-11-30 21:06), 0.1 (2009-11-17 20:18), 0.2 (2010-07-25 13:06), 0.3 (2010-08-31 08:13), 0.4 (2011-03-20 20:39), 0.5 (2011-06-01 18:16), 0.6 (2011-12-30 12:23), 0.7.1 (2013-03-27 16:57), 0.7 (2012-06-27 07:52), 0.8.1 (2014-02-22 00:25), 0.8 (2014-02-20 20:55), 0.9.1 (2014-10-01 19:16), 0.9 (2014-09-22 23:05), 0.10.0 (2015-05-22 22:39), 0.11.0 (2015-10-14 09:54), 1.0.0 (2016-04-14 08:40), 1.0.1 (2016-04-21 15:33), 1.0.2 (2016-04-23 08:37), 2.0.0 (2017-12-13 10:30), 2.0.1 (2018-10-13 10:40), 2.1.0 (2019-04-23 00:13), 2.1.1 (2019-04-24 00:40), 2.2.0 (2019-07-22 23:10), 2.2.1 (2019-07-25 17:40), 2.3.0 (2019-11-05 23:50), 2.3.1 (2019-12-01 16:40), 2.3.2 (2020-03-02 16:40), 3.0.0 (2020-10-31 08:10), 3.0.1 (2020-12-17 11:00), 3.0.2 (2021-02-14 17:50), 3.0.3 (2021-06-17 00:30), 3.0.4 (2021-07-01 09:00), 3.1.0 (2021-10-04 10:30), 3.1.1 (2021-12-03 23:50), 3.1.2 (2022-01-20 23:40), 3.1.3 (2022-03-29 17:10), 3.1.4 (2022-04-26 14:20), 3.1.5 (2022-10-08 08:40), 3.1.6 (2022-12-10 00:40), 3.1.7 (2023-03-12 16:40), 3.1.8 (2023-05-04 08:30), 3.1.9 (2023-06-16 00:30), 3.1.10 (2023-07-07 00:00), 3.2.0 (2023-10-06 17:40), 3.2.1 (2023-12-02 12:50)
Other packages that cited testthat R package
View testthat citation profile
Other R packages that testthat depends, imports, suggests or enhances
Functions, R codes and Examples using the testthat R package
Some associated functions: CheckReporter . DebugReporter . FailReporter . JunitReporter . ListReporter . LocationReporter . MinimalReporter . MultiReporter . ProgressReporter . RStudioReporter . Reporter . SilentReporter . StopReporter . SummaryReporter . TapReporter . TeamcityReporter . auto_test . auto_test_package . capture_condition . capture_output . compare . compare_state . comparison-expectations . context . context_start_file . default_reporter . describe . dir_state . equality-expectations . evaluate_promise . expect . expect_equivalent . expect_error . expect_invisible . expect_is . expect_known_output . expect_length . expect_less_than . expect_match . expect_named . expect_no_error . expect_null . expect_output . expect_output_file . expect_reference . expect_setequal . expect_silent . expect_snapshot . expect_snapshot_file . expect_snapshot_output . expect_snapshot_value . expect_success . expect_that . expect_vector . expectation . fail . find_reporter . find_test_scripts . inheritance-expectations . is_informative_error . is_testing . local_edition . local_mocked_bindings . local_snapshotter . local_test_context . local_test_directory . logical-expectations . make_expectation . not . oldskool . quasi_label . reexports . reporter-accessors . run_cpp_tests . set_max_fails . set_state_inspector . skip . skip_on_travis . snapshot_accept . source_file . takes_less_than . teardown . teardown_env . test_dir . test_env . test_examples . test_file . test_package . test_path . test_that . testthat-package . testthat_examples . testthat_results . testthat_tolerance . try_again . use_catch . verify_output . watch . with_mock . 
Some associated R codes: auto-test.R . capture-output.R . colour-text.R . compare.R . context.R . deprec-condition.R . describe.R . edition.R . evaluate-promise.R . example.R . expect-comparison.R . expect-condition.R . expect-constant.R . expect-equality.R . expect-inheritance.R . expect-invisible.R . expect-known.R . expect-length.R . expect-named.R . expect-no-condition.R . expect-output.R . expect-self-test.R . expect-setequal.R . expect-silent.R . expect-that.R . expect-vector.R . expectation.R . expectations-matches.R . import-standalone-obj-type.R . import-standalone-types-check.R . local.R . make-expectation.R . mock.R . mock2.R . old-school.R . parallel-config.R . parallel-taskq.R . parallel.R . praise.R . quasi-label.R . reporter-check.R . reporter-debug.R . reporter-fail.R . reporter-junit.R . reporter-list.R . reporter-location.R . reporter-minimal.R . reporter-multi.R . reporter-progress.R . reporter-rstudio.R . reporter-silent.R . reporter-stop.R . reporter-summary.R . reporter-tap.R . reporter-teamcity.R . reporter-zzz.R . reporter.R . skip.R . snapshot-cleanup.R . snapshot-file-snaps.R . snapshot-file.R . snapshot-manage.R . snapshot-reporter-parallel.R . snapshot-reporter.R . snapshot-serialize.R . snapshot-value.R . snapshot.R . source.R . srcrefs.R . stack.R . teardown.R . test-compiled-code.R . test-env.R . test-example.R . test-files.R . test-package.R . test-path.R . test-state.R . test-that.R . testthat-package.R . try-again.R . utils.R . verify-output.R . watcher.R .  Full testthat package functions and examples
Downloads during the last 30 days
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

seismic  
Predict Information Cascade by Self-Exciting Point Process
An implementation of self-exciting point process model for information cascades, which occurs when m ...
Download / Learn more Package Citations See dependency  
daySupply  
Calculating Days' Supply and Daily Dose of Prescriptions
Allows clinicians and researchers to compute daily dose (and subsequently days' supply) for prescrip ...
Download / Learn more Package Citations See dependency  
plsRbeta  
Partial Least Squares Regression for Beta Regression Models
Provides Partial least squares Regression for (weighted) beta regression models (Bertrand 2013,< ...
Download / Learn more Package Citations See dependency  
nlstac  
An R Package for Fitting Separable Nonlinear Models
Set of functions implementing the algorithm described in Fernandez Torvisco et al. (2018) for fitti ...
Download / Learn more Package Citations See dependency  
odpc  
One-Sided Dynamic Principal Components
Functions to compute the one-sided dynamic principal components ('odpc') introduced in Pe ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  

22,030

R Packages

186,816

Dependencies

55,244

Author Associations

22,031

Publication Badges

© Copyright 2022 - present. All right reserved, rpkg.net. Contact Us / Suggestions / Concerns