From 30f3f5e319448a92acfd3a2e7f289284669c00a3 Mon Sep 17 00:00:00 2001 From: paulie-of-punskas Date: Mon, 9 Oct 2023 21:08:11 +0200 Subject: [PATCH] ignore incomplete final line --- R/pkg_ref_cache_news.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/pkg_ref_cache_news.R b/R/pkg_ref_cache_news.R index d158c92e..bd9bf631 100644 --- a/R/pkg_ref_cache_news.R +++ b/R/pkg_ref_cache_news.R @@ -64,7 +64,7 @@ news_from_dir <- function(path) { content[[i]] <- .tools()$.news_reader_default(f) } else if (tolower(tools::file_ext(f)) == "md") { # NOTE: should we do validation of markdown format? - content[[i]] <- readLines(f) + content[[i]] <- readLines(f, warn = FALSE) } valid[[i]] <- TRUE }, error = function(e) {