So I am building a Shiny app that has 3 Select Inputs League, Team, Player
If I select a tournament, team and the player the respective player image must be displayed
Player Image URL is in one particular column as mentioned(df$player_image_url)
How do I map this??
im<-reactive({
df
})
output$ply_img1<-renderImage({
if(TournamentShortName %in% input$sel_tour1 &
TeamName %in% input$sel_team1 ){
tags$img(src=im()$player_img_url,height=30,width=30)
}else{
tags$img(src="SAMPLE_img.png)}
})
The above is the sample code that throws an error?