if (FALSE) {
# In an interactive R session, behaves like utils::View():
View(un_member_states_2024)
# In an R Markdown or Quarto document, renders an interactive
# DT::datatable() inline instead of erroring:
View(un_member_states_2024)
# For large data a random sample is shown by default; override with:
View(some_big_data, full = TRUE) # all rows (may be slow)
View(some_big_data, n = 500) # sample 500 rows instead of 1000
View(some_big_data, seed = 42) # reproducible random sample
View(some_big_data, quiet = TRUE) # no "random sample" message
}
Run the code above in your browser using DataLab