tests/testthat/utils.R

try_spacy_initialize <- function() {
  if (methods::is(try(spacy_initialize()), "try-error")) 
    testthat::skip("Can't initialize")
}

Try the spacyr package in your browser

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

spacyr documentation built on May 29, 2024, 4:35 a.m.