# NOT RUN {
new_tibble(list(a = 1:3, b = 4:6))
# One particular situation where the nrow argument is essential:
new_tibble(list(), nrow = 150, subclass = "my_tibble")
# It's safest to always pass it along:
new_tibble(list(a = 1:3, b = 4:6), nrow = 3)
# }
# NOT RUN {
# All columns must be the same length:
new_tibble(list(a = 1:3, b = 4.6))
# The length must be consistent with the nrow argument if available:
new_tibble(list(a = 1:3, b = 4:6), nrow = 2)
# }
Run the code above in your browser using DataLab