HTMLChangeCSS: Change the current CSS file for dynamic use of package

Description Usage Arguments Value Note Author(s) See Also Examples

Description

When using in dynamic mode, a call to HTMLStart copy the R2HTML.css file to the specified output directory (temp by default). HTMLChangeCSS copy a new CSS file to this destination (or to working directory). Then, the produced HTML files are now based on this new CSS.

Usage

1
HTMLChangeCSS(newCSS = "R2HTML", from = NULL)

Arguments

newCSS

Name of the CSS to use (without the extension)

from

Source directory where to search the CSS file

Value

A boolean: wether this has been done or not.

Note

In order to work properly, this assumes you hae used R2HTML.css file (the default one), as this is this file which will be replaced by the new one.

Author(s)

Eric Lecoutre

See Also

HTMLStart

Examples

1
2
3
4
5
6
7
## Not run: 
	HTMLStart()
	(x=diag(3))
	HTMLChangeCSS("Pastel")
	# refresh the browser

## End(Not run)

Example output

 *** Output redirected to directory:  /work/tmp/tmp/Rtmp02r0nv
 *** Use HTMLStop() to end redirection.[1] TRUE
     [,1] [,2] [,3]
[1,]    1    0    0
[2,]    0    1    0
[3,]    0    0    1
[1] TRUE

R2HTML documentation built on May 30, 2017, 12:05 a.m.

Related to HTMLChangeCSS in R2HTML...