This R package consists of several shiny modules that return R code in the form of reactive
characters. All those modules represent common operations regarding
read.csv
, read.xlsx
, data()
, ...)write.csv
, write.xlsx
, ...)Always save the output from callModule
into a variable when working with modules from this package. The outputs can then be parsed as R code using eval(parse(text = code()))
or evalCode
.
## context: server.R
code <- callModule(libData, id = "some_id", assignTo = "dt")
output$table <- renderTable({
evalCode(code())
})
libData
: read data from R
packages using utils::data
readData
: read data from a file using read.csv
, read.xlsx
or others depending on the file-extension.variableView
Rename columns, filter data and change column types. The layout is oriented on the "variable view" in SPSSggDownload
Download ggplot
with custom height, width and file-type (png
, jpeg
, ...)downloadTable
Download tables (usually data.frames
) as csv
, xlsx
, rds
.renderCode
/codeOutput
Show code with syntax highlighting.evalCode
Wrapper for eval(parse(text = .))
with error popups.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.