Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

expect_output_file

Expectations: is the output or the value equal to a known good value?


Description

expect_output_file() behaves identically to expect_known_output().

Usage

expect_output_file(
  object,
  file,
  update = TRUE,
  ...,
  info = NULL,
  label = NULL,
  print = FALSE,
  width = 80
)

3rd edition

[Deprecated]

expect_output_file() is deprecated in the 3rd edition; please use expect_snapshot_output() and friends instead.


testthat

Unit Testing for R

v3.0.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph, fnd], R Core team [ctb] (Implementation of utils::recover())
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.