powered by
Checks that the code produces no output, messages, or warnings.
expect_silent(object)
Object to test.
Supports limited unquoting to make it easier to generate readable failures within a function or for loop. See quasi_label for more details.
The first argument, invisibly.
Other expectations: comparison-expectations, equality-expectations, expect_error, expect_length, expect_match, expect_message, expect_named, expect_null, expect_output, inheritance-expectations, logical-expectations
comparison-expectations
equality-expectations
expect_error
expect_length
expect_match
expect_message
expect_named
expect_null
expect_output
inheritance-expectations
logical-expectations
# NOT RUN { expect_silent("123") f <- function() { message("Hi!") warning("Hey!!") print("OY!!!") } # } # NOT RUN { expect_silent(f()) # }
Run the code above in your browser using DataLab