```{r, echo=FALSE}writeLines( c( '```{stan, output.var="mod"}' , readLines('my_stan_model.stan') ,'```' ) , con = 'my_stan_model.Rmd')``````{r , child = 'my_stan_model.Rmd'}```I couldn't find anyone else posting this solution, so I thought I'd share what I came up with.