# NOT RUN {
## eval some template
x <- rapport('Example', data = mtcars, var="hp")
## try basic parameters
rapport.export(x)
rapport.export(x, file = 'demo')
rapport.export(x, file = 'demo', format = 'odt')
### append reports
# 1) Create a report object with the first report and do not export (optional)
report <- rapport.export(x, create = F)
# 2) Append some other reports without exporting (optional)
report <- rapport.export(x, create = F, append = report)
# 3) Export it!
rapport.export(append=report)
# 4) Export it to other formats too! (optional)
rapport.export(append=report, format='rst')
### exporting multiple reports at once
rapport.export(rapport.example('Example', 'all'))
rapport.export(rapport.example('Example', 'all'), format = 'odt')
rapport.export(list(rapport('univar-descriptive', data = mtcars, var = "hp"),
rapport('Descriptives', data = mtcars, var = "mpg")))
### Never do this as being dumb:
rapport.export()
### Adding own custom CSS to exported HTML
rapport.export(x, options =
sprintf('-c %s', system.file('templates/css/default.css', package='rapport')))
# }
Run the code above in your browser using DataLab