hi Alejandro,
have you tried using CmdStanR instead of RStan? it’s not (yet) on CRAN, but it will solve your problem.