title: R package fails to run examples on x64 but works on i386 and Debian
body: <p>I’ve been having trouble loading a package onto CRAN. I am using R Studio to build my package and some lower-level C code for optimization. Within R Studio I'm able to load/build/check my package with no problems (I am using a Mac btw). However, when I build the package and submit it to CRAN, it's rejected with the following:</p>
  
  <pre class="lang-r prettyprint-override"><code>Flavor: r-devel-windows-ix86+x86_64
  Check: running examples for arch 'x64', Result: ERROR
  </code></pre>
  
  <p>Upon looking at the log that is provided for me, the examples run perfectly fine for Debian and windows i386.</p>
  
  <p>Does anyone have an idea as to why my examples fail for x64 but work fine on i386? </p>
  
  <p>Below is the code in the 00check.log:</p>
  
  <pre><code>** running examples for arch 'i386' ... OK
  ** running examples for arch 'x64' ... ERROR
  Running examples in 'fastcmprsk-Ex.R' failed
  The error most likely occurred in:
  .
  .
  .
  &gt; ### ** Examples
  &gt; 
  &gt; library(fastcmprsk)
  &gt; 
  &gt; set.seed(10)
  &gt; ftime &lt;- rexp(200)
  &gt; fstatus &lt;- sample(0:2, 200, replace = TRUE)
  &gt; cov &lt;- matrix(runif(1000), nrow = 200)
  &gt; dimnames(cov)[[2]] &lt;- c('x1','x2','x3','x4','x5')
  &gt; fit &lt;- fastCrr(Crisk(ftime, fstatus) ~ cov, variance = FALSE)
  * DONE
  Status: 1 ERROR, 1 NOTE
  </code></pre>
  
  <p>I'm led to believe that the culprit is the <code>fastCrr</code> function. However, the example seems to have run fine for arch 'i386' (see above) and for Debian. I can't understand why it fails for x64, is there a hardware issue that I'm not aware of? The function I'm calling does call <code>C</code> for the optimization routine. Perhaps there's a leak somewhere but I double checked and made sure that I <code>Free</code> every <code>Calloc</code> variable. I'm not sure how else leaks can happen or why it'll only be specific to one system and not the other.</p>
  
  <p>Hope this helps.  </p>
  
  <p>Thank you to all who've been viewing this and for your feedback.</p>