tests/testthat/test-parse.R

test_that('og_parse works', {
  expect_true(is.vector(og_parse('https://www.rstudio.com')))
  expect_true(length(og_parse('https://www.christophertkenny.com/testtesttest')) == 0)
})

Try the opengraph package in your browser

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

opengraph documentation built on Sept. 9, 2025, 5:30 p.m.