title: how to load .RData file whose names contains a previously save system date in R
body: <p>Assume I save my data ( say mtcars ) as .RData with this name format:</p>
  <pre><code>save(mtcars, file = paste0(&quot;data&quot;,&quot;_&quot;,Sys.Date(),&quot;.RData&quot;))
  </code></pre>
  <p>this file <code>data_2022-05-26</code>.RData and many more files with similar name construction are saved in my documents now.</p>
  <p>my problem is if in future time I want to load this or any of these files, how can I do it?</p>
  <pre><code>load(paste0(&quot;data&quot;,&quot;_&quot;,Sys.Date(),&quot;.RData&quot;))
  </code></pre>
  <p>what I exactly what is to save <code>Sys.Date()</code> somehow when creating the file name, so that I can use it instead of <code>Sys.Date()</code> which makes <code>load()</code> function to look for a file with today's date.</p>
  <p>edit. I must point out that I have to create my .rda file and load it later either same day or another day, but the codes are both in the same r file.</p>