title: How to install/locate R.h and Rmath.h header files?
body: <p>I am trying to compile some C code (called rand_beta) in terminal which contains the lines to include R.h and Rmath.h header files using <code>gcc -o rand_beta rand_beta.c</code> so I can then call the code from within R.
  However, I get the error messages: </p>
  
  <pre><code>rand_beta.c:1:15: error: R.h: No such file or directory
  rand_beta.c:2:19: error: Rmath.h: No such file or directory
  </code></pre>
  
  <p>It seems that these header files which should come installed with R are not on my system.</p>
  
  <p>Can someone guide me as to how I can get my computer to find the R header files? Do I need to download them from somewhere?</p>