publish: Render your challenge R Markdown script to a HTML page.

Description Usage Arguments Value Note See Also Examples

View source: R/new.r

Description

Render your challenge R Markdown script to a HTML page.

Usage

1
2
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 NULL then a default based on the name of the input file is chosen.

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 render.

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://www.dropbox.com/help/16. Alternatively, GitHub Pages provide an easy HTML web publishing solution via a simple GitHub repository.

See Also

render

Examples

1
2
3
4
5
6
7
8
path <- tempdir()
wd <- setwd(path)
new_challenge()
outdir = tempdir()
publish(output_dir = outdir, output_options = list(self_contained = FALSE))
unlink(outdir)
setwd(wd)
unlink(path)

adrtod/rchallenge documentation built on July 1, 2017, 8:48 p.m.