# NOT RUN {
# Default setting:
getOption("tibble.view_max")
# Change for the duration of the session:
old <- options(tibble.view_max = 100)
# view() would show only 100 rows e.g. for a lazy data frame
# Change back to the original value:
options(old)
# Local scope:
local({
rlang::local_options(tibble.view_max = 100)
# view() would show only 100 rows e.g. for a lazy data frame
})
# view() would show the default 1000 rows e.g. for a lazy data frame
# }
Run the code above in your browser using DataLab