This is a very light wrapper to "rstan", using RCall. The only exported function is "rstan". Upon initializing, it will automatically turn on for you:
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())
but print the recomendation to do so anyway.
Write your model in a character string, and submit that with your data in a dictionary.
data = Dict("x" => x, "N" => length(x))
rstan(model_code, data)