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
- Import of data (
read.csv,read.xlsx,data(), ...) - Manipulation of data (rename columns, change column classes, filtering)
- export of 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 fromRpackages usingutils::datareadData: read data from a file usingread.csv,read.xlsxor others depending on the file-extension.variableViewRename columns, filter data and change column types. The layout is oriented on the "variable view" in SPSSggDownloadDownloadggplotwith custom height, width and file-type (png,jpeg, ...)downloadTableDownload tables (usuallydata.frames) ascsv,xlsx,rds.
renderCode/codeOutputShow code with syntax highlighting.evalCodeWrapper foreval(parse(text = .))with error popups.