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
Thresholds require special treatment. It's very tricky to pass a complicated expression like ifelse() because it must be evaluated in the right environment, and that may need a change tiltIndicator.
Maybe for now it's best to do NULL for the default and allows only a single number as alternative input. To give finer grained control to the user we could take the thresholds directly from scenarios -- i.e. the user modifies scenarios to add the values of low_ and high_threshold they want.
---
title: "test"output: github_documentparams:
low_threshold: !r expression(ifelse(scenarios$year == 2030, 1/9, 1/3))# !r 1/3 also works but maybe best to always call `eval()`high_threshold: !r expression(1/3)
---
Thresholds require special treatment. It's very tricky to pass a complicated expression like
ifelse()
because it must be evaluated in the right environment, and that may need a change tiltIndicator.Maybe for now it's best to do
NULL
for the default and allows only a single number as alternative input. To give finer grained control to the user we could take the thresholds directly fromscenarios
-- i.e. the user modifiesscenarios
to add the values oflow_
andhigh_threshold
they want.The text was updated successfully, but these errors were encountered: