title: Convert .xlsm to .xlsx in R
body: <p>I would like to convert an Excel file (say it's name is "Jimmy") that is saved as a macro enabled workbook (Jimmy.xlsm) to Jimmy.xlsx.</p>
  
  <p>I need this to be done in a coding environment. I cannot simply change this by opening the file in Excel and assigning a different file-type. I am currently programming in R. If I use the function </p>
  
  <pre><code>file.rename("Jimmy.xlsm", "Jimmy.xlsx")
  </code></pre>
  
  <p>the file becomes corrupted.</p>