R Markdown Flashcards

1
Q

echo = FALSE

A

This means the code that generates a chart for example, will not show up.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do I hide the code that generates a visual?

A

echo = FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do I insert an R code chunk?

A

by typing the chunk delimiters

{r} and
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

by typing the chunk delimiters

{r} and
A

I can insert a code chunk in R Markdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

include = FALSE

A

prevents code and results from appearing in the finished file. R Markdown still runs the code in the chunk, and the results can be used by other chunks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

prevents code and results from appearing in the finished file. R Markdown still runs the code in the chunk, and the results can be used by other chunks.

A

include = FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

echo = FALSE

A

prevents code, but not the results from appearing in the finished file. This is a useful way to embed figures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

prevents code, but not the results from appearing in the finished file. This is a useful way to embed figures.

A

echo = FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

message = FALSE

A

prevents messages that are generated by code from appearing in the finished file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

prevents messages that are generated by code from appearing in the finished file.

A

message = FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

warning = FALSE

A

prevents warnings that are generated by code from appearing in the finished

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

prevents warnings that are generated by code from appearing in the finished

A

warning = FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

fig.cap = “…”

A

adds a caption to graphical results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

adds a caption to graphical results.

A

fig.cap = “…”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

knitr::opts_chunk$set

A

To set global options that apply to every chunk in your file, call

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To set global options that apply to every chunk in your file, call

A

knitr::opts_chunk$set

17
Q

Code results can be inserted directly into the text of a .Rmd file by enclosing the code with

18
Q

r

A

Code results can be inserted directly into the text of a .Rmd file by enclosing the code with

19
Q

R Markdown will always

A

display the results of inline code, but not the code

apply relevant text formatting to the results

20
Q

knitr::kable

A

If you prefer that data be displayed with additional formatting you can use

21
Q

If you prefer that data be displayed with additional formatting you can use

A

knitr::kable

22
Q

results=’asis’

A

chunk option. This is required to ensure that the raw table output isn’t processed further by knitr.

23
Q

chunk option. This is required to ensure that the raw table output isn’t processed further by knitr.

A

results=’asis’

24
Q

a set of markup annotations for plain text files. When you render your file, Pandoc transforms the marked up text into formatted text in your final file format

25
Q

Pandoc

A

a set of markup annotations for plain text files. When you render your file, Pandoc transforms the marked up text into formatted text in your final file format

26
Q

You can use Pandoc’s Markdown to make:

A
Headers
Lists
Links
Images
Block quotes
Latex equations
Horizontal rules
Tables
Footnotes
Bibliographies and Citations
Slide breaks
Italicized text
Bold text
Superscripts
Subscripts
Strikethrough text