publish {rchallenge} | R Documentation |
Render your challenge R Markdown script to a HTML page.
Description
Render your challenge R Markdown script to a HTML page.
Usage
publish(
input = "challenge.rmd",
output_file = "index.html",
output_dir = dirname(input),
quiet = FALSE,
...
)
Arguments
input |
string. name of the R Markdown input file |
output_file |
string. output file. If |
output_dir |
string. output directory. Defaults to the directory of the input file. make sure that the output HTML file will be published online. |
quiet |
logical. deactivate text output. |
... |
further arguments to pass to |
Value
The compiled document is written into the output file, and the path of the output file is returned.
Note
The rendering of HTML content provided by Dropbox will be discontinued from the 3rd October 2016 for Basic users and the 1st September 2017 for Pro and Business users. See https://help.dropbox.com/fr-fr/files-folders/share/public-folder. Alternatively, GitHub Pages provide an easy HTML web publishing solution via a simple GitHub repository.
See Also
Examples
path <- tempdir()
wd <- setwd(path)
new_challenge()
outdir = tempdir()
if (rmarkdown::pandoc_available('1.12.3')) {
publish(output_dir = outdir, output_options = list(self_contained = FALSE))
}
unlink(outdir)
setwd(wd)
unlink(path)