tests/testthat/test-query.R

test_that('typr_query works', {
  skip_if_no_typst()

  query <- suppressWarnings({
    typr_query('../test.typ', '<my-sec>')
  })

  expect_true(
    is.data.frame(query) || is.character(query)
  )
})

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.