isTruthy | R Documentation |
For example, a 'textInput' that has not been filled out by the user has a value of '""', so that is considered a falsy value.
isTruthy(x)
x |
An expression whose truthiness value we want to determine |
To be precise, a value is truthy *unless* it is one of:
* 'FALSE' * 'NULL' * '""' * An empty atomic vector * An atomic vector that contains only missing values * A logical vector that contains all 'FALSE' or missing values * An object of class '"try-error"' * A value that represents an unclicked [actionButton()]
Note in particular that the value '0' is considered truthy, even though 'as.logical(0)' is 'FALSE'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.