server.export: Server tools: export data.frame

Description Usage Arguments Details Value Note Author(s) Examples

Description

Export a data.frame in CSV, XLSX or RDS format and create a html link on the output.

Usage

1
2
3
server.export(x, filename=NULL, title=NULL, 
              format=c("csv","xlsx","rds"),
              rownames=FALSE) 

Arguments

x

- a data.frame

filename

- a string, the file name without extension

Title

- a string, the text of the link

format

- a string, the file format ["csv","xlsx","rds"]

rownames

- boolean, TRUE if row.names are exported. Default FALSE

Details

Files are exported in the subdirectory "exports". If this directory does not exists, it will be created.

Value

Return nothing. GDS the Global DataSet is modified

Note

The chunk where the function is called in, must have option "echo = asis"

Author(s)

jp.decorps@epiconcept.fr

Examples

1
2
data(iris)
server.export(iris, filename = "iris",title = "CSV: Data.frame iris")

Epiconcept-Paris/RServerUtils documentation built on May 6, 2019, 3:49 p.m.