powered by
Test if input is a data.frame
test_if_dataframe(x)
object
an error if input (x) is a data.frame
# NOT RUN { # success test_if_dataframe(airquality) #fail my_test <- matrix(10) test_if_dataframe(my_test) # } # NOT RUN { # }
Run the code above in your browser using DataLab