title: R: Read file or sheet name of a csv file
body: <p>Is there a possibility to read out the filename or the sheet name of a .csv file when importing it in R? I generated a .csv by clicking on the url:
  <a href="https://www.populationpyramid.net/api/pp/4/2019/?csv=true" rel="nofollow noreferrer">https://www.populationpyramid.net/api/pp/4/2019/?csv=true</a></p>
  <p>The file has the name &quot;Afghanistan-2019&quot; and the sheet name is the same.
  Now I tried to do the same with R using</p>
  <pre><code>library(readr)
  df &lt;- read_csv(&quot;https://www.populationpyramid.net/api/pp/4/2019/?csv=true&quot;)
  </code></pre>
  <p>However, that only gives me access to the data, but I lost the information of the file/sheet name. Any suggestions?</p>