I am new to Shiny and I am not sure why I get an error.
I already have created a function that takes an input a variable "name" and then after some lines I simply end by print(plot 1) print(plot 2). Now I want to make this function reactive using shiny.
I have already in my R session environment run the dataframe & the function. Then I run the shiny app using this code but I get this error. Do you have any idea what could be the issue? :/
Warning: Error in seq.int: 'to' must be a finite number
library(shiny)
ui <- fluidPage(
  headerPanel("Change graph"), 
  sidebarPanel(
    selectInput(
      "playlist", "Select a Playlist Name", playlist_names)
    ),
  mainPanel(plotOutput("plot1"))
  
  
)
server <- function(input, output) {
  output$plot1<-renderPlot({playlist_name_plots("input$playlist")})
}
shinyApp(ui = ui, server = server)
 
    