| Title: | HTML Reports and so on |
|---|---|
| Description: | Provides some utility functions (e.g. an HTML report maker). Compatibility updates by Renova. |
| Authors: | Ichikawa Daisuke [aut, cre] |
| Maintainer: | Ichikawa Daisuke <[email protected]> |
| License: | GPL-2 |
| Version: | 0.1.9001 |
| Built: | 2026-11-19 06:37:56 UTC |
| Source: | https://github.com/renova-r/batade |
This package provides some utility functions (e.g HTML report maker).
| Package: | batade |
| Type: | Package |
| Version: | 0.1 |
| Date: | 2011-06-13 |
| License: | GPL-2 |
Ichikawa Daisuke
Maintainer: Ichikawa Daisuke <ichikawadaisuke at gmail.com>
Make HTML report from rayout dataframe. This is a wrapper function of "hwrite" in the "hwriter" package.
mkhtml(filename, data, foot = TRUE, charset = "CP932", lang = "JP")mkhtml(filename, data, foot = TRUE, charset = "CP932", lang = "JP")
filename |
character.A filename for output. |
data |
3 columns dataframe. left column:text or a image file name, middle column:choose a text size LL/L/M/S, right column:image file or not, image file=1, others =0. See Example. |
foot |
logical. If TRUE, the bottom row is converted into foot note. |
charset |
character. Default charset is "CP932". |
lang |
character. Default language code is "JP". |
NULL(a HTML file)
#prepare a image file. png("sample.png") plot(iris$Sepal.Length, iris$Sepal.Width) dev.off() #make a dataframe for the report rayout df <- data.frame("This is a sample report.", "LL", stringsAsFactors=FALSE) df[2,] <- c("This is a caption.", "L") df[3,] <- c("This is a caption2.", "M") df[4,] <- c("This is a text.", "S") df[5,] <- c("sample.png", "S") df[6,] <- c("This is a foot note", "S") mkhtml("sample.html", df) #If you use a web-browser supporting CSS3, you can edit text parts on it.#prepare a image file. png("sample.png") plot(iris$Sepal.Length, iris$Sepal.Width) dev.off() #make a dataframe for the report rayout df <- data.frame("This is a sample report.", "LL", stringsAsFactors=FALSE) df[2,] <- c("This is a caption.", "L") df[3,] <- c("This is a caption2.", "M") df[4,] <- c("This is a text.", "S") df[5,] <- c("sample.png", "S") df[6,] <- c("This is a foot note", "S") mkhtml("sample.html", df) #If you use a web-browser supporting CSS3, you can edit text parts on it.