title: Checking file permissions from R
body: <p>Dear Stackoverflowers,</p>
  
  <p>I am looking for a way to check the file permissions in the current folder (the one that can be obtained using getwd()) in the R language. I am working on a Unix platform and know that I can get file permission mode using file.info(), but I do not know how to check to which category (owner / group / rest) I belong and thus what specific rights I have.</p>
  
  <p>A second question that I have is whether this can also be done cross-platform, so that this would work also on other platforms (most importantly on Windows).</p>
  
  <p>Thank you very much for you help!</p>
  
  <p>Thomas</p>