Bayes Posterior distribution - proc MCMC

Hello everyone, I'm new to the community and I hope I'm writing in the right place.
I need help to translate code from SAS to R.
I have code from SAS which through a PROC MCMC produces a posterior bayesian distribution, allowing to specificy priors for the parameters and a binomial model on data.
If it helps the proc uses a random walk Metropolis algorithm to obtain posterior samples
I need this code in R, is there a function which does the same thing?
Thank you so much!