-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Merge remote-tracking branch 'rstudio_origin/main' into jg-tree-fix # By Yihui Xie (7) and others # Via Yihui Xie * rstudio_origin/main: import bslib (rstudio#2154) CRAN release v2.11 https://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html -> https://pandoc.org/MANUAL.html#citations Add a specific dirname for sass caching roxygenize and bump version export convert_ipynb() per suggestion of @acircleda use sass::output_template() instead of storing a copy in rmarkdown fix yihui/xaringan#331: respect relative paths in parent directories in the `css` argument of `html_document()` Bump version Prerender shiny rmd in separate environment (rstudio#2203) Mark result of citeproc conversion as UTF-8 (rstudio#2202) # Conflicts: # NEWS.md
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: rmarkdown | ||
Type: Package | ||
Title: Dynamic Documents for R | ||
Version: 2.10.2 | ||
Version: 2.11.1 | ||
Authors@R: c( | ||
person("JJ", "Allaire", role = "aut", email = "[email protected]"), | ||
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")), | ||
|
@@ -90,6 +90,7 @@ Imports: | |
tinytex (>= 0.31), | ||
xfun (>= 0.21), | ||
jquerylib, | ||
bslib (>= 0.2.5.1), | ||
methods, | ||
stringr (>= 1.2.0) | ||
Suggests: | ||
|
@@ -103,12 +104,11 @@ Suggests: | |
fs, | ||
rsconnect, | ||
withr (>= 2.4.2), | ||
bslib (>= 0.2.5.1), | ||
sass (>= 0.4.0) | ||
SystemRequirements: pandoc (>= 1.14) - http://pandoc.org | ||
URL: https://github.com/rstudio/rmarkdown, https://pkgs.rstudio.com/rmarkdown/ | ||
BugReports: https://github.com/rstudio/rmarkdown/issues | ||
License: GPL-3 | ||
RoxygenNote: 7.1.1 | ||
RoxygenNote: 7.1.2 | ||
Encoding: UTF-8 | ||
VignetteBuilder: knitr |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Converting bib file is working | ||
|
||
list(list(author = list(list(family = "Conceição", given = "Sérgio")), | ||
"container-title" = "Portuguese History", id = "conc2021", | ||
issue = "1", issued = list("date-parts" = list(list(2021L))), | ||
title = "História da habitação", type = "article-journal")) | ||
|
||
--- | ||
|
||
[1] "[" | ||
[2] " {" | ||
[3] " \"author\": [" | ||
[4] " {" | ||
[5] " \"family\": \"Conceição\"," | ||
[6] " \"given\": \"Sérgio\"" | ||
[7] " }" | ||
[8] " ]," | ||
[9] " \"container-title\": \"Portuguese History\"," | ||
[10] " \"id\": \"conc2021\"," | ||
[11] " \"issue\": \"1\"," | ||
[12] " \"issued\": {" | ||
[13] " \"date-parts\": [" | ||
[14] " [" | ||
[15] " 2021" | ||
[16] " ]" | ||
[17] " ]" | ||
[18] " }," | ||
[19] " \"title\": \"História da habitação\"," | ||
[20] " \"type\": \"article-journal\"" | ||
[21] " }" | ||
[22] "]" | ||
|
||
--- | ||
|
||
[1] "---" | ||
[2] "nocite: \"[@*]\"" | ||
[3] "references:" | ||
[4] "- author:" | ||
[5] " - family: Conceição" | ||
[6] " given: Sérgio" | ||
[7] " container-title: Portuguese History" | ||
[8] " id: conc2021" | ||
[9] " issue: 1" | ||
[10] " issued: 2021" | ||
[11] " title: História da habitação" | ||
[12] " type: article-journal" | ||
[13] "---" | ||
[14] "" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@article{conc2021, | ||
title={História da Habitação}, | ||
author={Conceição, Sérgio}, | ||
journal={Portuguese History}, | ||
number={1}, | ||
year={2021} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# TODO: to remove when switching the package to edition 3 | ||
local_edition(3) | ||
|
||
test_that("Converting bib file is working", { | ||
skip_on_cran() | ||
skip_if_not_pandoc("2.11") # only test with newer Pandoc citeproc | ||
bib_file <- test_path("resources/UTF8.bib") | ||
expect_snapshot_value(pandoc_citeproc_convert(bib_file, "list"), style = "deparse") | ||
expect_snapshot_output(pandoc_citeproc_convert(bib_file, "json")) | ||
expect_snapshot_output(pandoc_citeproc_convert(bib_file, "yaml")) | ||
}) |