title: Change size of image with a slider in Shiny
body: <p><strong>Goal:</strong> Make an image change size in response to moving a slider in Shiny (RStudio). Think zoom-in-zoom-out effect.</p>
  
  <p><strong>Problem:</strong> There's an error saying "Error in basename(imageinfo$src) : a character vector argument expected". I can't find anything that directly answers the question and I'm not sure what else to try. Is it just a problem with how sliderInput is used as input$slider in server.R?</p>
  
  <p><strong>My current progress:</strong> My rational was to set up the slider in the ui.R file and then have the width of the image be the input in the server.R file. </p>
  
  <p>The ui.R part:</p>
  
  <pre><code>shinyUI(fluidPage(
    titlePanel("Nancy's Brainstorming"),
    sidebarLayout(
  
  sidebarPanel(
    h3(
      strong("What is this?", style = "font-si24pt")),
    p("This is a pilot project."),
    sliderInput("slider", 
                label = "", 
                min = 100, 
                max = 300, 
                value = 200),
     imageOutput("logo", width = 200)
        )
      )
  ))
  </code></pre>
  
  <p>The server.R part:</p>
  
  <pre><code> shinyServer(function(input, output) {
  
    output$logo = renderImage({
    img(src = "mylogo.png", width = input$slider)
    })
  })
  </code></pre>
  
  <p><strong>Additional information:</strong> The image shows up just fine by itself when I use img(src = "mylogo.png", width = 200). Also, I'm doing this just to get a better feel for building Shiny apps. </p>