title: In Windows, R seems to call the wrong format function
body: <p>I'm trying to run the same R script in Windows (R version 3.2.0) and on a Mac (R version 3.1.3). It works on the Mac, but when I'm trying to use this command</p>
  
  <pre><code>startYear &lt;- format(min(dates), "%Y")
  </code></pre>
  
  <p>in Windows, I get the following error message:</p>
  
  <pre><code>Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L,  : 
    invalid 'trim'argument
  </code></pre>
  
  <p>It seems to be calling the wrong format function...</p>
  
  <p>Is there a way to tell it that it's the date format function I want? I already tried </p>
  
  <pre><code>Date.format()
  </code></pre>
  
  <p>but it just says that <code>Date.format()</code> doesn't exist!</p>
  
  <p>Can anybody help?</p>
  
  <p>Thanks!</p>
  
  <p>PS: I can't just stop using Windows, so I have to get it working there.</p>