Learn R Programming

r2lh (version 0.7)

r2hMainFile: ~ Generation of HTML main document ~

Description

This function generates an HTML main document designed to include links to some files built by r2hu or r2hb.

Usage

r2hMainFile(fileOut = "main.html",text="",sweave=FALSE)

Arguments

fileOut
characters; name of the main document.
text
text to be included in the HTML document, between the '' and '' .
sweave
logical; if TRUE, the main document is designed to be compiled with Sweave.

Value

A HTML file ("main.html" by default).

Author

Christophe Genolini christophe.genolini@free.fr PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health INSERM U669 / Maison de Solenn / Paris Bernard Desgraupes bernard.desgraupes@u-paris10.fr University of Paris Ouest - Nanterre

Details

r2hMainFile generates an HTML master file ready to include links to some files built by r2hu or r2hb.

References

HTML web site http://www.w3.org/TR/html/ Data are available on line: http://christophe.genolini.free.fr/EPO/EPO2007-Fraude.php

See Also

r2hu, r2hb, r2lh-package, examCheating, Sweave

Examples

Run this code
 # # # # # # # # # # # # # # # # # # #
#   R to HTML, Main file generation   #
 #             Examples              #
  #           r2hMainFile           #
   # # # # # # # # # # # # # # # # #


### Creates a file named "main.html" that includes "univ.html"
if(!file.exists("tmp")){dir.create("tmp")};setwd("tmp")
r2hMainFile()
setwd("../..")

Run the code above in your browser using DataLab