From cab26efb9df00b9612d67f0d88b82a767b6177e8 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Wed, 23 Jun 2021 14:02:44 -0500 Subject: [PATCH] specify the package name in \link[] --- R/utils-conversion.R | 9 +++++---- man/knit2html.Rd | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/R/utils-conversion.R b/R/utils-conversion.R index be76b8aaec..cae6fd3472 100644 --- a/R/utils-conversion.R +++ b/R/utils-conversion.R @@ -86,14 +86,15 @@ knit2pdf = function( #' Convert markdown to HTML using knit() and markdownToHTML() #' #' This is a convenience function to knit the input markdown source and call -#' \code{markdown::\link{markdownToHTML}()} in the \pkg{markdown} package to -#' convert the result to HTML. +#' \code{markdown::\link[markdown]{markdownToHTML}()} in the \pkg{markdown} +#' package to convert the result to HTML. #' @inheritParams knit -#' @param ... Options passed to \code{markdown::\link{markdownToHTML}()}. +#' @param ... Options passed to +#' \code{markdown::\link[markdown]{markdownToHTML}()}. #' @param force_v1 Boolean; whether to force rendering the input document as an #' R Markdown v1 document, even if it is for v2. #' @export -#' @seealso \code{\link{knit}}, \code{markdown::\link{markdownToHTML}} +#' @seealso \code{\link{knit}}, \code{markdown::\link[markdown]{markdownToHTML}} #' @return If the argument \code{text} is NULL, a character string (HTML code) #' is returned; otherwise the result is written into a file and the filename #' is returned. diff --git a/man/knit2html.Rd b/man/knit2html.Rd index f74850f72a..ea49fc99e9 100644 --- a/man/knit2html.Rd +++ b/man/knit2html.Rd @@ -22,7 +22,8 @@ knit2html( function will try to guess a default, which will be under the current working directory.} -\item{...}{Options passed to \code{markdown::\link{markdownToHTML}()}.} +\item{...}{Options passed to +\code{markdown::\link[markdown]{markdownToHTML}()}.} \item{envir}{Environment in which code chunks are to be evaluated, for example, \code{\link{parent.frame}()}, \code{\link{new.env}()}, or @@ -46,8 +47,8 @@ If the argument \code{text} is NULL, a character string (HTML code) } \description{ This is a convenience function to knit the input markdown source and call -\code{markdown::\link{markdownToHTML}()} in the \pkg{markdown} package to -convert the result to HTML. +\code{markdown::\link[markdown]{markdownToHTML}()} in the \pkg{markdown} +package to convert the result to HTML. } \note{ The \pkg{markdown} package is for R Markdown v1, which is much less @@ -65,5 +66,5 @@ if (interactive()) browseURL("test.html") unlink(c("test.Rmd", "test.html", "test.md")) } \seealso{ -\code{\link{knit}}, \code{markdown::\link{markdownToHTML}} +\code{\link{knit}}, \code{markdown::\link[markdown]{markdownToHTML}} }