Skip to content

Commit 17284db

Browse files
committed
get rid of xfun::attr(): yihui/xfun#96
1 parent d1ab0de commit 17284db

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: blogdown
33
Title: Create Blogs and Websites with R Markdown
4-
Version: 1.19.1
4+
Version: 1.19.2
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
77
person("Christophe", "Dervieux", role = "aut", email = "cderv@posit.co", comment = c(ORCID = "0000-0003-4474-2498")),
@@ -66,5 +66,5 @@ Suggests:
6666
whoami
6767
Config/Needs/website: pkgdown, tidyverse/tidytemplate, rstudio/quillt, rstudio/webshot2
6868
Encoding: UTF-8
69-
RoxygenNote: 7.2.3
69+
RoxygenNote: 7.3.2
7070
SystemRequirements: Hugo (<https://gohugo.io>) and Pandoc (<https://pandoc.org>)

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export(write_toml)
5252
export(yaml2toml)
5353
import(stats)
5454
import(utils)
55-
importFrom(xfun,attr)
5655
importFrom(xfun,del_empty_dir)
5756
importFrom(xfun,dir_create)
5857
importFrom(xfun,dir_exists)

R/package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' @aliases blogdown-package
1212
#' @import utils
1313
#' @import stats
14-
#' @importFrom xfun attr in_dir read_utf8 write_utf8 is_windows is_macos
14+
#' @importFrom xfun in_dir read_utf8 write_utf8 is_windows is_macos
1515
#' file_exists dir_exists file_ext msg_cat dir_create del_empty_dir proc_kill
1616
#' set_envvar exit_call existing_files
1717
#' @examples if (interactive()) blogdown::new_site()

R/render.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ build_one = function(input, output, to_md = file_ext(output) != 'html', quiet =
218218
}
219219

220220
process_markdown = function(res, x = read_utf8(res)) {
221-
unlink(xfun::attr(res, 'intermediates'))
221+
unlink(attr(res, 'intermediates'))
222222
# write HTML dependencies to the body of Markdown
223-
if (length(meta <- xfun::attr(res, 'knit_meta'))) {
223+
if (length(meta <- attr(res, 'knit_meta'))) {
224224
m = rmarkdown:::html_dependencies_as_string(meta, attr(res, 'files_dir'), '.')
225225
if (length(i <- grep('^---\\s*$', x)) >= 2) {
226226
x = append(x, m, i[2])

R/utils.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ pkg_file = function(..., mustWork = TRUE) {
3636
system.file(..., package = 'blogdown', mustWork = mustWork)
3737
}
3838

39+
attr = function(...) base::attr(..., exact = TRUE)
40+
3941
# tempfile under the current working directory
4042
wd_tempfile = function(..., pattern = '') {
4143
basename(tempfile(pattern, '.', ...))

blogdown.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: 7de02ffc-a200-4611-bc07-18b265ee1be3
23

34
RestoreWorkspace: Default
45
SaveWorkspace: Default

0 commit comments

Comments
 (0)