Skip to content

Commit

Permalink
Import R.utils::captureOutput
Browse files Browse the repository at this point in the history
Signed-off-by: Mathew W. McLean <[email protected]>
  • Loading branch information
mwmclean committed Oct 2, 2024
1 parent de8e92b commit 80b5581
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Imports:
lubridate (>= 1.5.0),
stringr,
stringi,
R.utils,
methods,
bibtex (>= 0.4.1)
Suggests:
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions R/toBiblatex.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 80b5581

Please sign in to comment.