Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/beginSweaveFile.R
Creation of .Rnw Sweave file for LaTeX and R code compiling and ultimately PDF report creation. Created to replace repTex
1 2 3 4 5 6 7 8 | beginSweaveFile(
filepath = getwd(),
filename = "report",
stamp = "Confidential",
title = "Fix Title",
chead = "",
cfoot = ""
)
|
filepath |
String giving the directory path to the directory where the .Rnw file will be created |
filename |
String giving the name of the file |
stamp |
String giving the background stamp that will be on every page of the LaTeX report |
title |
String giving the title for the report |
chead |
String giving the center header that will be on the top of every page of the report |
cfoot |
String giving the center foot that will be on the bottom of every page of the report |
This was created as a convenience for new reports. No longer copy and paste and edit LaTeX code from previous projects for a new project. Do not run this function twice for the same project. If this file already exists it will be erased first and recreated therefore work added to the file will be lost.
Output is a .Rnw file. File is started with standard LaTeX preamble that should be used in creating a LaTeX report.
University of Wisconsin-Madison Biostatistics and Medical Informatics Department, Scott Hetzel M.S.
Sweave()
1 2 | # This will create a report.Rnw file in the working Rdirectory
beginSweaveFile()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.