Skip to content

Instantly share code, notes, and snippets.

@potterzot
Last active October 19, 2017 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save potterzot/1f88f12740bd563ace2effc420693f6b to your computer and use it in GitHub Desktop.
Save potterzot/1f88f12740bd563ace2effc420693f6b to your computer and use it in GitHub Desktop.
Output from running tests on reprex
test_that("reprex: clipboard input works", {
  skip_if_no_clipboard()
  clipr::write_clip("1:5") #<- this line hangs
  expect_match(reprex(render = FALSE), "^1:5$", all = FALSE)
})

Output from tests testthat results ================================================================ OK: 84 SKIPPED: 2 FAILED: 3

  1. Failure: reprex: clipboard input works (@test-input.R#14)
  2. Error: reprex() suppresses tidyverse startup message by default (@test-tidyverse.R#4)
  3. Error: reprex() has control over tidyverse startup message (@test-tidyverse.R#10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment