Skip to content

Commit

Permalink
start to ignore the encoding argument in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Nov 27, 2019
1 parent 62f9256 commit 26d5193
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion R/output_format.R
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ smart_extension <- function(smart, extension) {
#' the function searches YAML files specified to the \code{output_yaml} top-level
#' parameter in the YAML front matter, _output.yml or _output.yaml, and then uses
#' the first existing one.
#' @param encoding The encoding of the input file; see \code{\link{file}}
#' @inheritParams render
#' @return A named list with a \code{name} value containing the format
#' name and an \code{options} value that is a list containing all the options
#' for the format and their values. An option's default value will be returned
Expand Down
3 changes: 1 addition & 2 deletions R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ NULL
#' @param run_pandoc An option for whether to run pandoc to convert Markdown
#' output.
#' @param quiet An option to suppress printing of the pandoc command line.
#' @param encoding The encoding of the input file. See \code{\link{file}} for
#' more information.
#' @param encoding Ignored. The encoding is always assumed to be UTF-8.
#' @return
#' When \code{run_pandoc = TRUE}, the compiled document is written into
#' the output file, and the path of the output file is returned. When
Expand Down
2 changes: 1 addition & 1 deletion R/render_site.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
#' during knitting (can use \code{\link{new.env}} to guarantee an empty new
#' environment).
#' @param quiet \code{TRUE} to suppress messages and other output.
#' @param encoding The encoding of the input file; see \code{\link{file}}.
#' @inheritParams render
#'
#' @return \code{render_site} returns the name of the site output file (relative
#' to the input directory). \code{clean_site} returns the names of the
Expand Down
2 changes: 1 addition & 1 deletion man/all_output_formats.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/default_output_format.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/render.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/render_site.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/yaml_front_matter.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26d5193

Please sign in to comment.