cssearcy / AYS-R-Coding-SPR-2020

Coding in R for Policy Analytics
https://cssearcy.github.io/AYS-R-Coding-SPR-2020/
3 stars 3 forks source link

RenderPlot & SelectInput Function not found #6

Open mchaji1 opened 4 years ago

mchaji1 commented 4 years ago

Error: object 'renderplot' not found

I keep getting this code for Renderplot & could not find function for "Selectinput". I have downloaded the packages, and that seems okay but one of the times it said that the shiny package was not available for my version which is the most up to date. I have a mac which I think may be a part of the problem. Has anyone else had any issues?

jamisoncrawford commented 4 years ago

renderplot() won't be recognized since you've not capitalized the p - should be renderPlot().

See: https://shiny.rstudio.com/reference/shiny/latest/renderPlot.html

This is also true of selectInput().

See: https://shiny.rstudio.com/reference/shiny/latest/selectInput.html

Hope this helps!

lecy commented 4 years ago

You also need to “Run Document” (replaces the knit option when runtime Shiny is present) to test the code. You can’t run a chunk independently.