title: how do you use cygwin to compile an R package from source?
body: <p>I am trying to install an R package from source:</p>
  
  <p><a href="https://sourceforge.net/projects/pdq-qnm-pkg/files/PDQ-R%20Source/6.1-1/pdq_6.1-1.tar.gz" rel="nofollow">https://sourceforge.net/projects/pdq-qnm-pkg/files/PDQ-R%20Source/6.1-1/pdq_6.1-1.tar.gz</a> </p>
  
  <p>I cannot install RTools to compile but I have Cygwin. How can install this package from source using Cygwin?</p>
  
  <p>when I do this:</p>
  
  <pre><code>install.packages("pdq_6.1-1.tar.gz",repos=NULL,type="source")
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Warning in install.packages :
    installation of package ‘PDQ-6.2.0.tar.gz’ had non-zero exit status
  </code></pre>