Control which version of R is used during quarto render
              
              #11813
            
            -
| DescriptionQuestion: how can we control which version of R is used during quarto render?Context:This is partially related to the discussion possibility to specify renv for quarto render on the Posit Community page. One part missing from that discussion is how an R version is chosen for  {
  "R": {
    "Version": "4.4.0",
}I am unsure how quarto chooses which version of R to use. For example I have the following versions of R installed In this case my default version is fine but ideally I would like to choose the exact match if possible. Looking at the output of quarto only sees the default version of R. How can we change that? | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 18 replies
-
| You can use the environment variable  You can set this in  | 
Beta Was this translation helpful? Give feedback.




You can use the environment variable
QUARTO_Rto specify the directory whereRscriptis.You can set this in
_environment.yml(_quarto.ymlis required, even an empty one).