Ill-formed phrase. "{" should be followed by a statement, variable declaration or expression

I always recommend CmdStanR or CmdStanPy.
they will use the latest version of Stan, which may be faster.
however, the slowness is probably due to the model, specifically, the number of gradient evaluations, not the interface.