read_lines <- function(...) {
if (requireNamespace("readr", quietly = TRUE)) {
readr::read_lines(...)
} else {
readLines(...)
}
}
write_lines <- function(...) {
if (requireNamespace("readr", quietly = TRUE)) {
readr::write_lines(...)
} else {
writeLines(...)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.