From 2823db4f803cf5221f27c9f2639148e636cb6c1f Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Sat, 11 May 2024 14:35:24 +0200 Subject: [PATCH] Fix `paste_linter()` lints --- R/roxygen-examples-parse.R | 2 +- R/utils-cache.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/roxygen-examples-parse.R b/R/roxygen-examples-parse.R index ac25ce950..a428acae4 100644 --- a/R/roxygen-examples-parse.R +++ b/R/roxygen-examples-parse.R @@ -179,6 +179,6 @@ needs_rd_emulation <- function(roxygen) { #' @keywords internal post_parse_roxygen <- function(raw) { raw %>% - paste0(collapse = "") %>% + paste(collapse = "") %>% convert_newlines_to_linebreaks() } diff --git a/R/utils-cache.R b/R/utils-cache.R index 6b57fb788..ce255587e 100644 --- a/R/utils-cache.R +++ b/R/utils-cache.R @@ -9,7 +9,7 @@ hash_standardize <- function(text) { text %>% convert_newlines_to_linebreaks() %>% enc2utf8() %>% - paste0(collapse = "\n") %>% + paste(collapse = "\n") %>% list() }