-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab 4 - "object 'input' not found" #16
Comments
Hm... if object |
Yes, I've done all of those things. I checked with the library() function and shiny and dplyr are both installed. I made sure to call them from the library before attempting to run the code. |
And they're explicitly in the beginning of your shiny script? The calls to |
I'm having the same problem. My code is
When I run either line, it says "Error: object 'input' not found." I've also tried
because I thought that after running my inital code, team.name and input$my_team would be the same, but that code returns "object team.name not found" I have all the packages loaded, and these are above my renderPlot. |
@BriannaSmithR that would likely be the culprit:
The |
I moved
into the renderPlot(), but I'm still getting the "Error: object input no found." I also moved my other code and it isn't working either :( |
@BriannaSmithR would you kindly email me your .Rmd file and I can have a look? |
I've tried what you've said and am having the same problem as Brianna. Could I do the same? |
@SalvadorW2 absolutely! |
@SalvadorW2 so the
It should be the final layer of paint on your visualization, since it's the reactive portion! Last note is a biggie and so I'm putting it in bold so others will see it: Everyone:Running the individual code chunks will throw an error - you need to knit the document in its entirety, since the chunks must communicate with each other simultaneously - running an individual chunk is like seeing if a car will budge when you've taken off half the wheels! Let me know if this helps! |
Okay, thank you! This is helpful. |
Sure thing, @SalvadorW2! |
Thank you, I have the reactive element working now for the interactive graph. Sean Waggoner |
Great! 🔥 |
Hello everyone,
I'm trying to get the following chunk of code to work:
dat.one.team <- filter( .data = Teams,
name == input$my_team )
points( x=dat.one.team$yearID, y=dat.one.team$ave.so,
pch=20,
cex=1.2,
col="goldenrod1",
type="b" )
team.name <- input$my_team
However, I keep getting the following error message:
Error: Problem with
filter()
input..1
.x object 'input' not found
i Input
..1
isname == input$my_team
.I've installed Shiny and believe I have configured selectInput correctly:
selectInput(
inputId = "my_team",
label = "Select a team:",
choices = c("New York Yankees",
"Boston Red Sox",
"Oakland Athletics",
"Atlanta Braves",
"Toronto Blue Jays",
"Los Angeles Dodgers",
"Houston Astros",
"Chicago Cubs",
"New York Mets",
"Arizona Diamonbacks"),
selected = "Atlanta Braves"
Does anyone know what the problem could be?
The text was updated successfully, but these errors were encountered: