Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions analysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ spark_disconnect(sc)
```
````

To((("commands", "render()"))) knit this report, save the file with a _.Rmd_ extension such as _report.Rmd_, and run `render()` from R. The output should look like that shown in Figure \@ref(fig:visualize-analysis-communicate).
To ((("commands", "render()"))) knit this report, save the file with a _.Rmd_ extension such as _report.Rmd_, and run `render()` from R. The output should look like that shown in Figure \@ref(fig:visualize-analysis-communicate).

```{r analysis-communicate-rmd, eval=FALSE}
rmarkdown::render("report.Rmd")
Expand All @@ -688,7 +688,7 @@ rmarkdown::render("report.Rmd")
render_image("images/analysis-rmarkdown.png")
```

You can now easily share this report, and viewers of won't need Spark or R to read and consume its contents; it’s just a self-contained HTML file, trivial to open in any browser.
You can now easily share this report, and viewers won't need Spark or R to read and consume its contents; it’s just a self-contained HTML file, trivial to open in any browser.

It is also common to distill insights of a report into many other output formats. Switching is quite easy: in the top frontmatter, change the `output` option to `powerpoint_presentation`, `pdf_document`, `word_document`, or the like. Or you can even produce multiple output formats from the same report:

Expand Down