Question 1

Which of the following are absolutely necessary for creating a functioning shiny app? (Check all that apply)

*What is rmarkdown? (Check all that apply.)

A simplified format that, when interpreted, incorporates your R analysis into your document. A form of LaTeX typesetting. A format that can be interpreted into markdown (which is a simplified markup language). A simplified XML format that can be interpreted into R.

Answer:

A simplified format that, when interpreted, incorporates your R analysis into your document. A format that can be interpreted into markdown (which is a simplified markup language).

Question 2

In rmarkdown presentations, in the options for code chunks, what command prevents the code from being repeated before results in the final interpreted document?

Answer:

  • echo = FALSE

Question 3

In rmarkdown presentations, in the options for code chunks, what prevents the code from being interpreted?

Answer:

  • eval = FALSE

Question 4

What is leaflet? (Check all that apply.)

Answer:

  • An R package interface to the javascript library of the same name
  • A javascript lirary for creating interactive maps

Question 5

The R command

df %>% leaflet() %>% addTiles()

is equivalent to what? (Check all that apply)

Answer

addTiles(leaflet(df))
leaflet() %>% addTiles()

Question 6

If I want to add popup icons to my leaflet map in R, I should use.

Answer:

  • addMarkers