title: renaming a 7zip extracted folder error Access i denied R
body: <p>I extracted a <em>TxtinOut</em> named folder using the following cmd in R</p>
  <pre><code>shell('7z x D:/Region02/test.7z  -oD:/Region02 -r -y')
  </code></pre>
  <p>I want to rename this folder <em>TxtinOut</em> to <em>New_Name</em>. I tried <strong>file.rename()</strong> but faced an <strong>ERROR</strong>: <em>reason 'Access is denied'</em></p>
  <pre><code>file.rename(&quot;D:\\Region02\\TxtinOut&quot;, &quot;D:\\Region02\\New_Name&quot;)
  </code></pre>
  <p>Can anyone suggest how I can proceed?</p>