Skip to content

Commit

Permalink
Update utils.R
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot authored Sep 5, 2023
1 parent f2afc3f commit 5648d4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ twrap <- function(value, tag) {
escape_xml <- function(x, replacement = c("&amp;", "&quot;", "&lt;", "&gt;", "&apos;")) {
stringi::stri_replace_all_fixed(str = stringi::stri_enc_toutf8(x), pattern = c("&", "\"", "<", ">", "'"),
replacement = replacement, vectorize_all = FALSE)
}

.check_pkg_availability <- function(pkg, lib.loc = NULL) {
if (identical(find.package(pkg, quiet = TRUE, lib.loc = lib.loc), character(0))) {
Expand Down

0 comments on commit 5648d4b

Please sign in to comment.