Flatten nested chronicle objects
flatten_record.Rd
Flatten nested chronicle objects
Examples
r_sqrt <- record(sqrt)
r_log <- record(log)
a <- as_chronicle(r_log(10))
a
#> OK! Value computed successfully:
#> ---------------
#> Just
#> OK! Value computed successfully:
#> ---------------
#> Just
#> [1] 2.302585
#>
#> ---------------
#> This is an object of type `chronicle`.
#> Retrieve the value of this object with pick(.c, "value").
#> To read the log of this object, call read_log(.c).
#>
#>
#> ---------------
#> This is an object of type `chronicle`.
#> Retrieve the value of this object with pick(.c, "value").
#> To read the log of this object, call read_log(.c).
#>
flatten_record(a)
#> OK! Value computed successfully:
#> ---------------
#> Just
#> [1] 2.302585
#>
#> ---------------
#> This is an object of type `chronicle`.
#> Retrieve the value of this object with pick(.c, "value").
#> To read the log of this object, call read_log(.c).
#>