trigger_download {rtabulator}R Documentation

Download table data

Description

Download table data

Usage

trigger_download(ctx, type = c("csv", "json", "xlsx"), file_name = NULL)

Arguments

ctx

A tabulatorContext() object.

type

File format.

file_name

File name. Set to "data.{type}" if file_name = NULL.

Details

If you want to support xlsx downloads, you need to include the sheetjs HTML dependency with tabulator(..., sheetjs = TRUE).

Value

A tabulatorContext() object

Examples


tabulatorContext("table") |>
  trigger_download("csv", "table-data.csv")


[Package rtabulator version 0.1.2 Index]