View source: R/02_S7_prop_factories.R
| prop_integer | R Documentation |
Accepts R integers only (3L, not 3), so that a whole-number contract is
enforced by the type rather than by a rounding check.
prop_integer(
default = NULL,
min = NULL,
max = NULL,
exclusive_min = NULL,
exclusive_max = NULL,
nullable = FALSE,
vector = FALSE,
min_items = 1L,
unique_items = FALSE,
description = ""
)
default |
Integer: Default value (NULL for none, or if |
min, max |
Integer or NULL: Inclusive bounds. |
exclusive_min, exclusive_max |
Integer or NULL: Exclusive bounds. |
nullable |
Logical: If TRUE, NULL is a valid value. |
vector |
Logical: If TRUE, the value is vector-valued (a JSON array). |
min_items |
Integer: Fewest elements a |
unique_items |
Logical: If TRUE, a |
description |
Character: Human-readable description. |
S7 property.
EDG
n_iter <- prop_integer(default = 100L, min = 1L, description = "Iterations")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.