title: R CMD check error : How to change file permission on windows?
body: <p>I have R CMD check error for my R packages, and error most possibly because of file permission set up wrong on my machine. I searched related post in SO but some of them is confusing. some people implied that run R CMD check supposed to be happen in directory where I have write permission, I can't figure how to rightly configure this on machine. Can any one help me how to change the file permission on windows ? How to solve this R CMD check error ?</p>
  
  <ul>
  <li>Note</li>
  </ul>
  
  <p>This is where R installed : <code>C:\Program Files\R\R-devel\bin\x64\Rgui.exe"</code></p>
  
  <p>This is where my package located :<code>C:\Users\jvrat\Documents\MSPC</code></p>
  
  <p>Here is the session of running R CMD check :</p>
  
  <pre><code>Microsoft Windows [Version 6.3.9600]
  (c) 2013 Microsoft Corporation. All rights reserved.
  
  C:\Users\jvrat&gt;cd C:\Program Files\R\R-devel\bin\x64
  
  C:\Program Files\R\R-devel\bin\x64&gt;R CMD check "C:\Users\jvrat\Documents\MSPC"
  Warning in dir.create(pkgoutdir, mode = "0755") :
    cannot create dir 'C:\Program Files\R\R-devel\bin\x64\MSPC.Rcheck', reason 'Permission denied'
  ERROR: cannot create check dir 'C:/Program Files/R/R-devel/bin/x64/MSPC.Rcheck'
  
  C:\Program Files\R\R-devel\bin\x64&gt;
  </code></pre>
  
  <p>which folder that I need to change file permission ? How can I make this happen file permission configuration on windows ? Thanks in advance :)</p>