SweaveBook: Sweave a set of files

View source: R/SweaveBook.R

SweaveBookR Documentation

Sweave a set of files

Description

Sweave more than one file at once. This is a helper function to Sweave all the chapters in Data Analysis for Forensic Scientists (DAFS) at once. I have put it into the library for completeness and in the hope that someone else might find it useful.

Usage

SweaveBook(idx = 0:6,
           fileList = paste(paste("Chapter", idx, "/", sep = ""),
                            paste("ch", idx, ".rnw", sep = ""),
                            sep = ""))

Arguments

idx

There seven chapters in Data Analysis for Forensic Scientists. Corresponding to each chapter is a folder named ChapterI where I is a number from 0 to 6, and an Sweave file named chI.rnw. This parameter lets the user select which subset of files need to be run through Sweave

fileList

This parameter may be altered to suit the structure of your book. By default it is set to create a list of files that have the same name and directory structure as DAFS. The function iterates over a set of file names specified by this parameter.

Value

No values are returned

Author(s)

James Curran

See Also

Sweave


dafs documentation built on April 11, 2022, 5:06 p.m.

Related to SweaveBook in dafs...