tests/test-ci.R

# run tests on CI (these tests depend on Chrome)

print_pdf = function(input, output = tempfile(), ...) {
  chrome_print(
    input, output,
    # use --no-sandbox with travis
    # https://docs.travis-ci.com/user/chrome#sandboxing
    # extra_args = c('--disable-gpu', '--no-sandbox'),
    ...
  )
}

if (!is.na(Sys.getenv('CI', NA))) {
  options(pagedown.remote.maxattempts = 100L)
  testit::test_pkg('pagedown', 'test-ci')
}

Try the pagedown package in your browser

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

pagedown documentation built on Dec. 28, 2022, 1:16 a.m.