ReporteRs (version 0.7.2)

writeDoc.bsdoc: Write a bsdoc object in a html file

Description

Write the bsdoc object in '.html' files located in a specified directory. bootstrap files will be copied in the directory if directory does not exist.

Usage

## S3 method for class 'bsdoc':
writeDoc(doc, file, reset.dir = FALSE, ...)

Arguments

doc
bsdoc object that has to be written.
file
single character value, name of the html file to write.
reset.dir
logical defaut to FALSE. Used to specify if the directory containing the file to produced should be deleted first (if existing for example). Set to FALSE enable to produce several html files in the same directory.
...
further arguments, not used.

Value

  • the function a character vector containing generated html documents filenames.

See Also

bsdoc, writeDoc

Examples

Run this code
doc.filename = "writeDoc_bsdoc/example.html"

# set default font size to 11
options( "ReporteRs-fontsize" = 11 )

doc = bsdoc( )

# Write the object
writeDoc( doc, file = doc.filename )

Run the code above in your browser using DataCamp Workspace