diff --git a/R/parse_citation.R b/R/parse_citation.R index b772d9cf..220e715c 100644 --- a/R/parse_citation.R +++ b/R/parse_citation.R @@ -75,7 +75,7 @@ guess_citation <- function(pkg){ installed <- installed.packages() if(file.exists(file.path(pkg, "inst/CITATION"))){ bib <- readCitationFile(file.path(pkg, "inst/CITATION"), - meta = cm_read_dcf(file.path(pkg, "DESCRIPTION"))) + meta = desc::desc(file.path(pkg, "DESCRIPTION"))) lapply(bib, parse_citation) } else if(pkg %in% installed[,1]){ bib <- suppressWarnings(citation(pkg)) # don't worry if no date