dataTable: Generates Data Table

Description Usage Arguments Details Examples

View source: R/myModules.R

Description

This function is used to generates a Data Table

Usage

1
dataTable(input, output, session, data, fileName)

Arguments

input

Required Argument

output

Required Argument

session

Required Argument

data

DataFrame to ve visualized

fileName

File Name when the Data Table is downloaded

Details

This function belongs to server.R script to easily generates a bar chart using Dygraphs. This function has three required params input, output, session that always is used by Shiny Modules. The data param is the data frame to ve visualized as a Data Table in the user interface, fileName param is the name of the file when the user click the downlaod button. How it used Shiny Modules, The function will be called using the callModule function, in the first param is the function to be called, the second param is the identifier used in dataTableUI("id") and the other params are the same after the session param. See the examples please.

Examples

1
2
callModule(dataTable, "table1", data1, "TestFichero1")
callModule(dataTable, "table2", data2, "TestFichero2")

sflorezp/modulesRReport documentation built on May 14, 2019, 9 a.m.