skip_if_no_python_or_no_spacy <- function() {
if (reticulate::py_module_available("spacy")) {
return(NULL)
} else {
testthat::skip("Skip the test as spaCy is not found")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.