To be used in cli calls like cli::cli_text("{.val {shapr:::num_str('12.10')}}") to format character strings
that typically represent a number as if it were numeric. May also be used with strings not representing a number.
Usage
num_str(x)
Value
A numeric class object with the value of the string.
Arguments
x
Character. A single character that represents a number, or a vector of characters.