The choose_data() module has an options parameter. Use the choose_data_options function to construct such option objects.

choose_data_options(
  aggregation = c("ask", "summary", "underlying", "datasource")
)

Arguments

aggregation

A character vector indicating what kind of data is allowed to be selected from a worksheet:

  • "summary" (i.e. aggregated),

  • "underlying" (i.e. row-level), and/or

  • "datasource" (the logical table(s) from which the underlying data is derived).

A vector of length 1, 2, or 3 may be passed; if length 1, then the user will not be shown a choice.

The special value "ask" (the default) is equivalent to c("summary", "underlying", "datasource").

See also