Report question

Question: how to incorporate C or C++ code into my R code to speed up a MCMC program, using a Metropolis-Hastings algorithm