title: Rcpp: "overloaded function with no contextual type information" for R::dbeta
body: <p>I have C++ code with the Rcpp package included.</p>
  <p>Within a function I have the following loop:</p>
  <pre><code>for(int i=0; i&lt;N; i++){
     double yi = y[i], xi = X_chain[i];
          
     double numerator = R::dbeta( yi, alpha_par, beta, log=false );
     double denumerator = R::dbeta( xi, alpha_par, beta, log=false );
     double alpha = std::min(1.0,(numerator)/(denumerator));
     
     (...)
  
  }
  </code></pre>
  <p>where alpha_par and beta are doubles and they are the parameters of the beta distribution.</p>
  <p>For both lines where I use the function R::dbeta I get the error &quot;overloaded function with no contextual type information&quot;. I am really confused since runif and rbinom at different points in the code are working completely fine.</p>