You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be interesting to have a helper function like for output format (is_html_output()) to test profile value
This would allow conditional chunk based on quarto profile value.
It is easy to do eval = Sys.getenv("QUARTO_PROFILE") == "profile name" but we could offer a nice shorter version.
We could either have a is_profile("profile name") that would be true on specific profile. Or another name more namespaced (quarto_profile() ? is_quarto_profile() ? when_quarto_profile() ? )
The text was updated successfully, but these errors were encountered:
For quarto document, some conditional content can be made on profile value. When a profile is activated
QUARTO_PROFILE
env var is set. https://quarto.org/docs/projects/profiles.html#overviewIt would be interesting to have a helper function like for output format (
is_html_output()
) to test profile valueThis would allow conditional chunk based on quarto profile value.
It is easy to do
eval = Sys.getenv("QUARTO_PROFILE") == "profile name"
but we could offer a nice shorter version.We could either have a
is_profile("profile name")
that would be true on specific profile. Or another name more namespaced (quarto_profile()
?is_quarto_profile()
?when_quarto_profile()
? )The text was updated successfully, but these errors were encountered: