DT::datatable option for data

opt.data(fname)

Arguments

fname

File name to download

Value

datatable option object

Details

DETAILS

Examples

opt.data("mtcars")
#> $dom #> [1] "<lf<rt>Bip>" #> #> $lengthMenu #> $lengthMenu[[1]] #> [1] 10 25 -1 #> #> $lengthMenu[[2]] #> [1] "10" "25" "All" #> #> #> $pageLength #> [1] 10 #> #> $buttons #> $buttons[[1]] #> [1] "copy" #> #> $buttons[[2]] #> [1] "print" #> #> $buttons[[3]] #> $buttons[[3]]$extend #> [1] "collection" #> #> $buttons[[3]]$buttons #> $buttons[[3]]$buttons[[1]] #> $buttons[[3]]$buttons[[1]]$extend #> [1] "csv" #> #> $buttons[[3]]$buttons[[1]]$filename #> [1] "mtcars" #> #> #> $buttons[[3]]$buttons[[2]] #> $buttons[[3]]$buttons[[2]]$extend #> [1] "excel" #> #> $buttons[[3]]$buttons[[2]]$filename #> [1] "mtcars" #> #> #> $buttons[[3]]$buttons[[3]] #> $buttons[[3]]$buttons[[3]]$extend #> [1] "pdf" #> #> $buttons[[3]]$buttons[[3]]$filename #> [1] "mtcars" #> #> #> #> $buttons[[3]]$text #> [1] "Download" #> #> #>