tests/testthat/test-validate.R

test_that("og_validate() works", {

  web <- og_parse('https://www.rstudio.com')

  skip_if(length(web) == 0)

  expect_equal(og_validate(web), TRUE)
})

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.