# NOT RUN {
# The nrow argument is always required:
new_tibble(list(a = 1:3, b = 4:6), nrow = 3)
# Existing row.names attributes are ignored:
try(validate_tibble(new_tibble(trees, nrow = 3)))
# The length of all columns must be compatible with the nrow argument:
try(validate_tibble(new_tibble(list(a = 1:3, b = 4:6), nrow = 2)))
# }
Run the code above in your browser using DataLab