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.3")



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-17
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.3, https://cran.r-project.org/web/packages/testthat. Accessed 08 Mar. 2025.
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.1 (2024-04-14 05:24), 3.2.1 (2023-12-02 12:50), 3.2.2 (2024-12-10 11:50)
Other packages that cited testthat R package
View testthat citation profile
Other R packages that testthat depends, imports, suggests or enhances
Complete documentation for testthat
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

Today's Hot Picks in Authors and Packages

gtheory  
Apply Generalizability Theory with R
Estimates variance components, generalizability coefficients, universe scores, and standard errors ...
Download / Learn more Package Citations See dependency  
varbin  
Optimal Binning of Continuous and Categorical Variables
Tool for easy and efficient discretization of continuous and categorical data. The package calculat ...
Download / Learn more Package Citations See dependency  
modest  
Model-Based Dose-Escalation Trials
User-friendly Shiny apps for designing and evaluating phase I cancer clinical trials, with the aim t ...
Download / Learn more Package Citations See dependency  
batchscr  
Batch Script Helpers
Handy frameworks, such as error handling and log generation, for batch scripts. Use case: in script ...
Download / Learn more Package Citations See dependency  
billboard  
Contains Data of Billboard Hot 100 Songs
Contains data sets regarding songs on the Billboard Hot 100 list from 1960 to 2016. The data sets i ...
Download / Learn more Package Citations See dependency  
kdist  
K-Distribution and Weibull Paper
Density, distribution function, quantile function and random generation for the K-distribution. A p ...
Download / Learn more Package Citations See dependency  

23,794

R Packages

206,711

Dependencies

64,305

Author Associations

23,781

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA