tests/testthat/test-paths.R

library(tufterhandout)

test_that("css can be located", {

  tufte_css <- system.file("tufterhandout.css", package = "tufterhandout")

  if(identical(.Platform$OS.type, "windows")){

    i <- grep(' ', tufte_css)
    if (length(i))
      path[i] <- utils::shortPathName(tufte_css[i])
    tufte_css <- gsub('/', '\\\\', tufte_css)

  }

  expect_true(file.exists(tufte_css))

})

Try the tufterhandout package in your browser

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

tufterhandout documentation built on May 2, 2019, 4:22 a.m.