# 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(new_tibble(iris, nrow = 3))
# The length of all columns must be compatible with the nrow argument:
try(new_tibble(list(a = 1:3, b = 4:6), nrow = 2))
# }
Run the code above in your browser using DataLab