tests/testthat/test-compile.R

test_that('typr_compile works', {
  skip_if_no_typst()

  path <- typr_compile('hello world')

  expect_true(file.exists(path))

  path <- typr_compile('../test.typ') # , output_file = fs::file_temp(ext = 'pdf'))

  expect_true(file.exists(path))
})

Try the typr package in your browser

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

typr documentation built on June 8, 2025, 10:36 a.m.