title: How to get a dynamic url to be used to scrape data in R?
body: <p>I'm working on a shinyapp that scrapes stock data from a website according to a range of dates chosen by the user. I use the package rvest to scrape my data however I'm still stuck on programming R to capture the user's date ranges and store it into a usable link.</p>
  <p>Here is my UI</p>
  <pre><code>dateRangeInput(&quot;daterange&quot;, &quot;Date range:&quot;,start  = &quot;2000-01-01&quot;,
                                            end    = lubridate::today(),
                                            min    = &quot;2000-01-01&quot;,
                                            max    = lubridate::today(),
                                            format = &quot;mm/dd/yyyy&quot;,
                                            separator = &quot;/&quot;
                 )
  </code></pre>
  <p>Here is my Server :</p>
  <pre><code>lien = read_html(link = quote(
                                   paste0(&quot;https://www.marketwatch.com/investing/stock/&quot;,
                                          input$choice_company,
                                          &quot;/download-data?startDate=&quot;,
                                          input$daterange[1],
                                          &quot;&amp;endDate=&quot;,
                                          input$daterange[2])
                               )
                  )
  </code></pre>
  <p>when i run my app it only shows for a half second and quits and the console shows this error, He can't seem to find the input, Do you have any Idea on how to solve this or any useful documentation ?</p>
  <pre><code>Warning: Error in ..stacktraceon..: objet 'input' introuvable
  [No stack trace available]
  Error in ..stacktraceon..({ : objet 'input' introuvable
  </code></pre>
  <p>The message in french : objet 'input' introuvable just means object 'input' not found</p>
  <p>Thanks in advance</p>