as_pretty_dt {selenider} | R Documentation |
Format a difftime
Description
Internal method used to print a selenider_session()
object. Designed to
be used with prettyunits::pretty_dt()
, prettyunits::pretty_ms()
and
prettyunits::pretty_sec()
.
Usage
as_pretty_dt(x)
## S3 method for class 'pretty_dt'
cli_format(x, style = NULL, ...)
Arguments
x |
A string representing a difftime. |
style , ... |
Not used. |
Value
An object of class pretty_dt
.
Examples
x <- as_pretty_dt(prettyunits::pretty_sec(10))
cli::cli_text("{.val x}")
[Package selenider version 0.4.0 Index]