Skip to contents

This function creates a data frame with certificate information including the current time, data and rule hashes, package version, and web hash.

Usage

certificate_df(x, time = Sys.time())

Arguments

x

A list containing `data_formatted` and `rules` elements.

time

the time the certificate is generated, can be passed a value or uses current system time.

Value

A data frame with certificate information.

Examples

# \donttest{
certificate_df(x = list(data_formatted = data.frame(a = 1:3, b = 4:6),
                        rules = validate::validator(a > 0, b > 0)),
               time = Sys.time())
#>                  time                             data
#> 1 2024-07-16 17:35:10 1588db974386807c63543ef59d3039e5
#>                              rules package_version
#> 1 72e416c076952f63b5d67e9d727a7eae           1.1.5
#>                           web_hash
#> 1 d0fc9c42f3b16e6afd26ff5036342a0d
               # }