diff --git a/R/parse_citation.R b/R/parse_citation.R index 4142f450..97527479 100644 --- a/R/parse_citation.R +++ b/R/parse_citation.R @@ -62,9 +62,6 @@ parse_citation <- function(bib){ out } -drop_null <- function(x){ - x[lapply(x,length)!=0] -} ## guessCitation referencePublication or citation? diff --git a/R/utils.R b/R/utils.R index e53a94c6..299eb97c 100644 --- a/R/utils.R +++ b/R/utils.R @@ -1,3 +1,7 @@ +drop_null <- function(x){ + x[lapply(x,length)!=0] +} + #' @importFrom utils installed.packages get_root_path <- function(pkg){