--------------------------------------------------------------------------------
-                                logrx Metadata                                -
--------------------------------------------------------------------------------
This log was generated using logrx 0.3.2.9000
logrx package version: 0.3.2.9000
logrx build: local
logrx link to repository: https://github.com/pharmaverse/logrx
--------------------------------------------------------------------------------
-                          User and File Information                           -
--------------------------------------------------------------------------------
User: r590548
File Name: risk_diff.R
File Path: /cloud/project/data-raw/risk_diff
File HashSum: b8a2fe9d71b3515b8d39a065389d0bcfa87bee51
--------------------------------------------------------------------------------
-                             Session Information                              -
--------------------------------------------------------------------------------
─ Session info ─────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.2.3 (2023-03-15)
 os       Ubuntu 20.04.6 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language (EN)
 collate  C.UTF-8
 ctype    C.UTF-8
 tz       UTC
 date     2025-04-30
 rstudio  2024.04.2+764.pro1 Chocolate Cosmos (server)
 pandoc   NA
 quarto   1.6.42 @ /usr/bin/quarto

─ Packages ─────────────────────────────────────────────────────────────────────
 package         * version    date (UTC) lib source
 admiral         * 1.2.0      2025-01-15 [1] RSPM (R 4.2.0)
 admiraldev        1.2.0      2025-01-15 [1] RSPM (R 4.2.0)
 assertthat        0.2.1      2019-03-21 [1] RSPM (R 4.2.0)
 cli               3.6.4      2025-02-13 [1] RSPM (R 4.2.0)
 digest            0.6.37     2024-08-19 [1] RSPM (R 4.2.0)
 dplyr           * 1.1.4      2023-11-17 [1] RSPM (R 4.2.0)
 forcats           1.0.0      2023-01-29 [1] RSPM (R 4.2.0)
 generics          0.1.3      2022-07-05 [1] RSPM (R 4.2.0)
 glue              1.8.0      2024-09-30 [1] RSPM (R 4.2.0)
 haven           * 2.5.4      2023-11-30 [1] RSPM (R 4.2.0)
 hms               1.1.3      2023-03-21 [1] RSPM (R 4.2.0)
 lifecycle         1.0.4      2023-11-07 [1] RSPM (R 4.2.0)
 logrx             0.3.2.9000 2025-04-30 [1] local
 lubridate       * 1.9.4      2024-12-08 [1] RSPM (R 4.2.0)
 magrittr        * 2.0.3      2022-03-30 [1] RSPM (R 4.2.0)
 pharmaversesdtm * 1.2.0      2025-01-23 [1] RSPM (R 4.2.0)
 pillar            1.10.1     2025-01-07 [1] RSPM (R 4.2.0)
 pkgconfig         2.0.3      2019-09-22 [1] RSPM (R 4.2.0)
 purrr             1.0.4      2025-02-05 [1] RSPM (R 4.2.0)
 R6                2.6.1      2025-02-15 [1] RSPM (R 4.2.0)
 readr             2.1.5      2024-01-10 [1] RSPM (R 4.2.0)
 rlang             1.1.5      2025-01-17 [1] RSPM (R 4.2.0)
 rstudioapi        0.17.1     2024-10-22 [1] RSPM (R 4.2.0)
 sessioninfo       1.2.3      2025-02-05 [1] RSPM (R 4.2.0)
 stringi           1.8.4      2024-05-06 [1] RSPM (R 4.2.0)
 stringr         * 1.5.1      2023-11-14 [1] RSPM (R 4.2.0)
 tibble            3.2.1      2023-03-20 [1] RSPM (R 4.2.0)
 tidyr             1.3.1      2024-01-24 [1] RSPM (R 4.2.0)
 tidyselect        1.2.1      2024-03-11 [1] RSPM (R 4.2.0)
 timechange        0.3.0      2024-01-18 [1] RSPM (R 4.2.0)
 Tplyr           * 1.2.1      2024-02-20 [1] RSPM (R 4.2.0)
 tzdb              0.4.0      2023-05-12 [1] RSPM (R 4.2.0)
 vctrs             0.6.5      2023-12-01 [1] RSPM (R 4.2.0)
 withr             3.0.2      2024-10-28 [1] RSPM (R 4.2.0)

 [1] /cloud/lib/x86_64-pc-linux-gnu-library/4.2
 [2] /opt/R/4.2.3/lib/R/library
 * ── Packages attached to the search path.

─ External software ────────────────────────────────────────────────────────────
 setting        value
 cairo          1.16.0
 cairoFT
 pango          1.44.7
 png            1.6.37
 jpeg           8.0
 tiff           LIBTIFF, Version 4.1.0
 tcl            8.6.10
 curl           7.68.0
 zlib           1.2.11
 bzlib          1.0.8, 13-Jul-2019
 xz             5.2.4
 PCRE           10.34 2019-11-21
 ICU            66.1
 TRE            TRE 0.8.0 R_fixes (BSD)
 iconv          glibc 2.31
 readline       8.0

      BLAS           /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so

      lapack         /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.8.so
 lapack_version 3.9.0

─ Python configuration ─────────────────────────────────────────────────────────
 Python is not available

────────────────────────────────────────────────────────────────────────────────
--------------------------------------------------------------------------------
-                               Masked Functions                               -
--------------------------------------------------------------------------------
function `%>%` from {package:magrittr, package:stringr, package:dplyr, package:admiral} by package:Tplyr
function `intersect` from {package:dplyr, package:base} by package:lubridate
function `setdiff` from {package:dplyr, package:base} by package:lubridate
function `union` from {package:dplyr, package:base} by package:lubridate
function `Arith` from {package:methods} by package:lubridate
function `Compare` from {package:methods} by package:lubridate
function `show` from {package:methods} by package:lubridate
function `as.difftime` from {package:base} by package:lubridate
function `date` from {package:base} by package:lubridate
function `desc` from {package:admiral} by package:dplyr
function `filter` from {package:stats} by package:dplyr
function `lag` from {package:stats} by package:dplyr
function `setequal` from {package:base} by package:dplyr
function `ts` from {package:stats} by package:pharmaversesdtm
function `cm` from {package:grDevices} by package:pharmaversesdtm
function `plot` from {package:base} by package:graphics
function `body<-` from {package:base} by package:methods
function `kronecker` from {package:base} by package:methods
--------------------------------------------------------------------------------
-                          Used Package and Functions                          -
--------------------------------------------------------------------------------
{package:Tplyr} tplyr_table, %>%, add_layer, group_count, set_distinct_by, add_risk_diff, build
{package:base} library, c
{package:haven} read_xpt
--------------------------------------------------------------------------------
-                         Program Run Time Information                         -
--------------------------------------------------------------------------------
Start time: 2025-04-30 15:20:42 UTC
End time: 2025-04-30 15:20:43 UTC
Run time: 1 seconds
--------------------------------------------------------------------------------
-                             Errors and Warnings                              -
--------------------------------------------------------------------------------
Errors:
    

Warnings:
    Chi-squared approximation may be incorrect
    Chi-squared approximation may be incorrect
    Chi-squared approximation may be incorrect
    Chi-squared approximation may be incorrect
--------------------------------------------------------------------------------
-                         Messages, Output, and Result                         -
--------------------------------------------------------------------------------
Messages:
    
Output:
    

Result:
    # A tibble: 3 × 8
      row_label1              var1_Placebo var1_Xanomeline High…¹ var1_Xanomeline Low …² ord_layer_index
      <chr>                   <chr>        <chr>                  <chr>                            <int>
    1 AMERICAN INDIAN OR ALA… "  0 (  0.0… "  1 (  1.3%)"         "  0 (  0.0%)"                       1
    2 BLACK OR AFRICAN AMERI… "  6 (  8.7… "  8 ( 10.1%)"         "  4 (  5.2%)"                       1
    3 WHITE                   " 63 ( 91.3… " 70 ( 88.6%)"         " 73 ( 94.8%)"                       1
    # ℹ abbreviated names: ¹​`var1_Xanomeline High Dose`, ²​`var1_Xanomeline Low Dose`
    # ℹ 3 more variables: `rdiff_Xanomeline High Dose_Placebo` <chr>,
    #   `rdiff_Xanomeline Low Dose_Placebo` <chr>, ord_layer_1 <dbl>
--------------------------------------------------------------------------------
-                               Log Output File                                -
--------------------------------------------------------------------------------
Log name: risk_diff.log
Log path: /cloud/project/data-raw/risk_diff