From 80b55818671f554582524b905dcdb4888ed5801f Mon Sep 17 00:00:00 2001 From: "Mathew W. McLean" Date: Wed, 2 Oct 2024 22:42:17 +1000 Subject: [PATCH] Import R.utils::captureOutput Signed-off-by: Mathew W. McLean --- DESCRIPTION | 1 + NAMESPACE | 1 + R/toBiblatex.R | 3 +++ 3 files changed, 5 insertions(+) diff --git a/DESCRIPTION b/DESCRIPTION index 1853186..eab3958 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -30,6 +30,7 @@ Imports: lubridate (>= 1.5.0), stringr, stringi, + R.utils, methods, bibtex (>= 0.4.1) Suggests: diff --git a/NAMESPACE b/NAMESPACE index bec98a2..a06afbb 100755 --- a/NAMESPACE +++ b/NAMESPACE @@ -49,6 +49,7 @@ export(as.BibEntry) export(fields) export(is.BibEntry) export(toBiblatex) +importFrom(R.utils,captureOutput) importFrom(bibtex,do_read_bib) importFrom(httr,GET) importFrom(httr,POST) diff --git a/R/toBiblatex.R b/R/toBiblatex.R index 0415376..4a49bea 100644 --- a/R/toBiblatex.R +++ b/R/toBiblatex.R @@ -100,7 +100,10 @@ EncodedNameListToLaTeX <- function(name.list, encoding = "UTF-8") return(out) } +#' Modified version of dplR::latexify #' @importFrom stringi stri_trans_nfc stri_trans_nfd +#' @importFrom R.utils captureOutput +#' @author Andy Bunn latexify <- function(x, doublebackslash = FALSE, dashdash = TRUE,