From 59c32c136c88df60de3a75c0749114c98d403a7e Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 6 Jan 2025 17:16:38 -0600 Subject: [PATCH] get rid of xfun::attr(): https://github.com/yihui/xfun/pull/96 --- DESCRIPTION | 2 +- NEWS.md | 2 ++ R/chrome.R | 2 +- pagedown.Rproj | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index bfbe6c10..f5a66b7e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: pagedown Type: Package Title: Paginate the HTML Output of R Markdown with CSS for Print -Version: 0.21.1 +Version: 0.21.2 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Romain", "Lesur", role = c("aut", "cph"), comment = c(ORCID = "0000-0002-0721-5595")), diff --git a/NEWS.md b/NEWS.md index 0686542c..c73a9fbe 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # CHANGES IN pagedown VERSION 0.22 +- No longer use `xfun::attr()` (which will be removed from **xfun**). + # CHANGES IN pagedown VERSION 0.21 - `html_paged()` and other formats using `paged.js` now informs **knitr** that its JS and CSS dependencies will be loaded by setting the `is.paged.js` global knit option. Use `isTRUE(knitr::opts_knit$get("is.paged.js"))` to detect it (thanks, @sylvaine31, @davidgohel, #332). diff --git a/R/chrome.R b/R/chrome.R index 5392f945..502ef4ec 100644 --- a/R/chrome.R +++ b/R/chrome.R @@ -111,7 +111,7 @@ chrome_print = function( on.exit(kill_chrome(), add = TRUE) remote_protocol_ok = is_remote_protocol_ok(debug_port, verbose = verbose) - stream_pdf_available = isTRUE(xfun::attr(remote_protocol_ok, 'stream_pdf_available')) + stream_pdf_available = isTRUE(attr(remote_protocol_ok, 'stream_pdf_available')) if (!remote_protocol_ok) stop('A more recent version of Chrome is required. ') diff --git a/pagedown.Rproj b/pagedown.Rproj index 69c8ae5b..dfceadf6 100644 --- a/pagedown.Rproj +++ b/pagedown.Rproj @@ -1,4 +1,5 @@ Version: 1.0 +ProjectId: 89f133bc-10c3-4fbf-926c-a1ce35320145 RestoreWorkspace: Default SaveWorkspace: Default