Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd600ba

Browse files
committed
be specific about the link dest
1 parent 716c4cc commit bd600ba

File tree

10 files changed

+29
-27
lines changed

10 files changed

+29
-27
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Suggests:
8888
URL: https://github.com/rstudio/bookdown, https://pkgs.rstudio.com/bookdown/
8989
BugReports: https://github.com/rstudio/bookdown/issues
9090
SystemRequirements: Pandoc (>= 1.17.2)
91-
RoxygenNote: 7.3.1
91+
RoxygenNote: 7.3.2
9292
Encoding: UTF-8
9393
Config/Needs/book: remotes, webshot, svglite
9494
Config/Needs/website: pkgdown, tidyverse/tidytemplate, rstudio/quillt

R/gitbook.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#'
88
#' @inheritParams html_chapters
99
#' @param fig_caption,number_sections,self_contained,anchor_sections,lib_dir,pandoc_args,code_folding,extra_dependencies,...
10-
#' Arguments to be passed to \code{rmarkdown::\link{html_document}()}
10+
#' Arguments to be passed to \code{rmarkdown::\link[rmarkdown]{html_document}()}
1111
#' (\code{...} not including \code{toc}, and \code{theme}).
1212
#' @param template Pandoc template to use for rendering. Pass \code{"default"}
1313
#' to use the bookdown default template; pass a path to use a custom template.

R/html.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' @inheritParams pdf_book
88
#' @inheritParams html_document2
99
#' @param toc,number_sections,fig_caption,lib_dir,template,pandoc_args See
10-
#' \code{rmarkdown::\link{html_document}},
10+
#' \code{rmarkdown::\link[rmarkdown]{html_document}},
1111
#' \code{tufte::\link[tufte:tufte_handout]{tufte_html}}, or the documentation
1212
#' of the \code{base_format} function.
1313
#' @param ... Other arguments to be passed to \code{base_format}. For
@@ -97,12 +97,12 @@ tufte_html_book = function(...) {
9797
#' figures/tables/equations
9898
#'
9999
#' These are simple wrappers of the output format functions like
100-
#' \code{rmarkdown::\link{html_document}()}, and they added the capability of
101-
#' numbering figures/tables/equations/theorems and cross-referencing them. See
102-
#' \sQuote{References} for the syntax. Note you can also cross-reference
103-
#' sections by their ID's using the same syntax when sections are numbered. In
104-
#' case you want to enable cross reference in other formats, use
105-
#' \code{markdown_document2} with \code{base_format} argument.
100+
#' \code{rmarkdown::\link[rmarkdown]{html_document}()}, and they added the
101+
#' capability of numbering figures/tables/equations/theorems and
102+
#' cross-referencing them. See \sQuote{References} for the syntax. Note you can
103+
#' also cross-reference sections by their ID's using the same syntax when
104+
#' sections are numbered. In case you want to enable cross reference in other
105+
#' formats, use \code{markdown_document2} with \code{base_format} argument.
106106
#' @param ...,fig_caption,md_extensions,pandoc_args Arguments to be passed to a
107107
#' specific output format function. For a function \code{foo2()}, its
108108
#' arguments are passed to \code{foo()}, e.g. \code{...} of
@@ -121,7 +121,7 @@ tufte_html_book = function(...) {
121121
#' are not numbered.
122122
#' @inheritParams pdf_book
123123
#' @return An R Markdown output format object to be passed to
124-
#' \code{rmarkdown::\link{render}()}.
124+
#' \code{rmarkdown::\link[rmarkdown]{render}()}.
125125
#' @note These output formats are used to generate single output files, such as
126126
#' a single HTML output file (unlike \code{gitbook}, which generates multiple
127127
#' HTML output files by default).

R/latex.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#' to be written to the \file{.tex} output file. This gives you full power to
1515
#' post-process the LaTeX output.
1616
#' @param toc,number_sections,fig_caption,pandoc_args See
17-
#' \code{rmarkdown::\link{pdf_document}}, or the documentation of the
18-
#' \code{base_format} function.
17+
#' \code{rmarkdown::\link[rmarkdown]{pdf_document}}, or the documentation of
18+
#' the \code{base_format} function.
1919
#' @param ... Other arguments to be passed to \code{base_format}.
2020
#' @param base_format An output format function to be used as the base format.
2121
#' @param toc_unnumbered Whether to add unnumbered headers to the table of

R/render.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
#' specified in this argument are rendered, otherwise all R Markdown files
1616
#' specified by the book are rendered.
1717
#' @param output_format,...,clean,envir Arguments to be passed to
18-
#' \code{rmarkdown::\link{render}()}. For \code{preview_chapter()}, \code{...}
19-
#' is passed to \code{render_book()}. See \code{rmarkdown::\link{render}()}
18+
#' \code{rmarkdown::\link[rmarkdown]{render}()}. For \code{preview_chapter()},
19+
#' \code{...} is passed to \code{render_book()}. See
20+
#' \code{rmarkdown::\link{render}()}
2021
#' and \href{https://bookdown.org/yihui/bookdown/build-the-book.html}{the
2122
#' bookdown reference book} for details on how output formatting options are
2223
#' set from YAML or parameters supplied by the user when calling

man/gitbook.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/html_chapters.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/html_document2.Rd

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pdf_book.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/render_book.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)