title: How to save multiple objects as .Rdata files with purrr
body: <p>I have a list of objects in my R envir and I would like to save them as correspondent <code>.Rdata</code> files. I know how to save them individually, but <strong>I would like to do it iteratively with <code>purrr</code></strong> (e.g. using <code>map</code> or <code>walk</code>?). I tried several times and I always get an error.</p>
  <pre><code># Example dfs 
  my_mtcars &lt;- mtcars
  my_orange &lt;- Orange
  list_dfs  &lt;-  list (my_mtcars = my_mtcars, my_orange = my_orange)
  
  # Individually I would do: 
  saveRDS(object = my_mtcars, file = paste0(&quot;my_mtcars&quot;, &quot;.RDS&quot;))
  
  # Here is one of my [WRONG] attempts
  n &lt;- 1:2 
  purrr::walk2(.x = list_dfs, .y =n,  ~saveRDS(.x, file = paste0(names(list_dfs[n]), &quot;.RDS&quot;)))
  </code></pre>
  <p>Any ideas?</p>