Skip to content

Commit

Permalink
Fix missing value removal check in bibliography_entries()
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Jan 26, 2021
1 parent 21ea911 commit fefffd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/bibliography.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ knit_print.vitae_bibliography <- function(x, options = knitr::opts_current$get()
x <- as.list(x)
el_is_list <- vapply(x, is.list, logical(1L))
x[el_is_list] <- lapply(x[el_is_list], `[[`, i=1)
Filter(function(x) !is.na(x) && length(x) > 0, x)
Filter(function(x) !is.na(x[1]) && length(x) > 0, x)
})
if((options$cache %||% 0) == 0) {
file <- tempfile(fileext = ".yaml")
Expand Down

0 comments on commit fefffd4

Please sign in to comment.