Developing Data Product Flashcards

1
Q

what is r markdown

A

A format that can be interpreted into markdown (which is a simplified markup language).

A simplified format that, when interpreted, incorporates your R analysis into your document.

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

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

A

echo = FALSE

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

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

A

eval = FALSE

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

What is leaflet?

A

An R package interface to the javascript library of the same name

A javascript library for creating interactive maps

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

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

A

addMarkers

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

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

A

A server.R file containing a call to shinyServer()

A ui.R file containing a call to shinyUI()

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

What is incorrect about the following syntax in ui.R?

library(shiny)
shinyUI(pageWithSidebar(  
  headerPanel("Data science FTW!"),  
  sidebarPanel(    
     h2('Big text')    
     h3('Sidebar')  
  ),  
  mainPanel(      
       h3('Main Panel text')  
  )
))
A

Missing a comma in the sidebar panel

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

Why isn’t it doing what we want?

A

The server.R output name isn’t the same as the plotOutput command used in ui.R.

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

What are the main differences between creating a Shiny Gadget and creating a regular Shiny App? (Check all that apply)

A

Shiny Gadgets are designed to be used by R users in the middle of a data analysis.

Shiny Gadgets are designed to have small user interfaces that fit on one page.

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