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 cool if you could use the pluralization formatting to provide alternative text based on whether the preceding value is positive or negative.
For example, if the value is positive use the word "more". If the value is negative use the word "fewer".
diff<-10
cli_alert_inform("Count has {diff} {?fewer/more} records")
#> Count has 10 more recordsdiff<--5
cli_alert_inform("Count has {diff} {?fewer/more} records")
# either with or without negative symbol#> Count has 5 fewer records#> Count has -5 fewer records
The text was updated successfully, but these errors were encountered:
It would be cool if you could use the pluralization formatting to provide alternative text based on whether the preceding value is positive or negative.
For example, if the value is positive use the word "more". If the value is negative use the word "fewer".
The text was updated successfully, but these errors were encountered: