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 8 replies
-
You can use the environment variable You can set this in |
Beta Was this translation helpful? Give feedback.
You can use it as a standard environment variable.
_environment.yml
(alongside_quarto.yml
) allows you to define environment variables on a per Quarto project basis.The way you want to set this environment variable is completely up to you.