# NOT RUN {
tmpfic=HTMLInitFile(tempdir(),CSSFile=system.file("samples", "R2HTML.css", package="R2HTML"))
data(iris)
HTML(as.title("Fisher Iris dataset"),file=tmpfic)
HTML(iris, file=tmpfic)
# File is generated, you can call the browser:
# }
# NOT RUN {
browseURL(tmpfic)
# }
# NOT RUN {
# Export one line of iris using default decimal separator
HTML(iris[1,],file="")
# Seeing default decimal separator:
getOption("R2HTML.format.decimal.mark")
# Modifying it:
options("R2HTML.format.decimal.mark"=",")
HTML(iris[1,],file="")
# Bypassing value set in option:
HTML(iris[1,],file="",decimal.mark="*")
# Using a vector for formatting options
HTML(iris[1:2,1:2],nsmall=c(3,1),file="")
# }
Run the code above in your browser using DataLab