Nothing
Code
expect_snapshot_file(write_tmp_lines(r_version()), "version.txt", variant = r_version())
Condition
Error in `expect_snapshot_file()`:
! Snapshot file names must be unique. `name` has already been used.
Code
out <- snapshot_file_equal_(path)
Condition
Warning:
Adding new file snapshot: 'tests/testthat/_snaps/my-test/test.txt'
Code
snapshot_file_equal_("doesnt-exist.txt")
Condition
Error in `snapshot_file_equal_()`:
! 'doesnt-exist.txt' not found.
Code
snapshot_hint("lala", reset_output = FALSE)
Output
* Run `testthat::snapshot_accept("lala")` to accept the change.
* Run `testthat::snapshot_review("lala")` to review the change.
Code
expect_snapshot_file(123)
Condition
Error in `expect_snapshot_file()`:
! `path` must be a single string, not the number 123.
Code
expect_snapshot_file("doesnt-exist.txt")
Condition
Error in `expect_snapshot_file()`:
! 'doesnt-exist.txt' doesn't exist.
Code
expect_snapshot_file(path, 123)
Condition
Error in `expect_snapshot_file()`:
! `name` must be a single string, not the number 123.
Code
expect_snapshot_file(path, "test.txt", cran = "yes")
Condition
Error in `expect_snapshot_file()`:
! `cran` must be `TRUE` or `FALSE`, not the string "yes".
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.