inst/unitTests/test_latex.R

test_maketitle <- function()
{
    dir <- system.file("unitTests", "cases", package="BiocStyle")
    fls <- dir(dir, pattern="maketitle_test.*.Rnw", full=TRUE)

    fls <- normalizePath(fls)
    pwd <- setwd(tempdir())
    on.exit(setwd(pwd))

    for (fl in fls) {
        checkTrue(file.copy(fl, rnw <- file.path(tempdir(), basename(fl))))
        tex <- utils::Sweave(rnw)
        pdf <- tools::texi2pdf(tex)
    }
}

Try the BiocStyle package in your browser

Any scripts or data that you put into this service are public.

BiocStyle documentation built on Nov. 26, 2020, 2:01 a.m.