I ran into this problem while deploying a quarto website to Rstudio Connect, but it may be useful for any site that's rendered with a cron job. Basically my site relies on long-running computation that I only want to render on Rstudio Connect The behaviour I'm after is: 

1) Document uses frozen output when `quarto render` is run locally
2) Document runs the computation when deployed to Rstudio Connect
3) Document runs the computation when re-rendered on a schedule by RSC

I tried to do this with 

```
execute: 
    freeeze: !expr Sys.getenv("R_CONFIG_ACTIVE" != "rsconnect")
```
And while that seems to work for a single html file it fails for a full site. It seems like there should be a cleaner interface for these types of config options which wasn't R-specific. For example there could be a config file which allowed the user to define YAML options on Rstudio Connect, Github actions, or when an environment variable was present.   


2022-09-01T12:48:49Z
GShotwell
enhancement
v1.2
closed
Config-based freezing
https://github.com/quarto-dev/quarto-cli/issues/2250