beginSweaveFile: Creation of LaTex Code to start the .Rnw Sweave file

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

View source: R/beginSweaveFile.R

Description

Creation of .Rnw Sweave file for LaTeX and R code compiling and ultimately PDF report creation. Created to replace repTex

Usage

1
2
3
4
5
6
7
8
beginSweaveFile(
  filepath = getwd(),
  filename = "report",
  stamp = "Confidential",
  title = "Fix Title",
  chead = "",
  cfoot = ""
)

Arguments

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

Details

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.

Value

Output is a .Rnw file. File is started with standard LaTeX preamble that should be used in creating a LaTeX report.

Author(s)

University of Wisconsin-Madison Biostatistics and Medical Informatics Department, Scott Hetzel M.S.

See Also

Sweave()

Examples

1
2
# This will create a report.Rnw file in the working Rdirectory
beginSweaveFile()

jbirstler/biostatrpts documentation built on May 7, 2020, 12:10 a.m.