tests/testthat/_snaps/pdt01.md

pdt01 function with default argument value return expected result with test data

Code
  cat(export_as_txt(res, lpp = 100, cpp = 200))
Output
    Category                                                              A: Drug X   B: Placebo   C: Combination
      Description                                                          (N=15)       (N=15)         (N=15)    
    —————————————————————————————————————————————————————————————————————————————————————————————————————————————
    Total number of patients with at least one major protocol deviation   2 (13.3%)   4 (26.7%)          0       
    Total number of major protocol deviations                                 2           5              0       
    EXCLUSION CRITERIA                                                                                           
      Active or untreated or other excluded cns metastases                    0        1 (6.7%)          0       
      Pregnancy criteria                                                      0        1 (6.7%)          0       
    INCLUSION CRITERIA                                                                                           
      Ineligible cancer type or current cancer stage                      1 (6.7%)        0              0       
    MEDICATION                                                                                                   
      Discontinued study drug for unspecified reason                          0        1 (6.7%)          0       
      Received prohibited concomitant medication                              0        1 (6.7%)          0       
    PROCEDURAL                                                                                                   
      Eligibility-related test not done/out of window                         0        1 (6.7%)          0       
      Failure to sign updated ICF within two visits                       1 (6.7%)        0              0

pdt01 can handle all NA values

Code
  cat(export_as_txt(res, lpp = 100, cpp = 200))
Output
    Category                                                              A: Drug X   B: Placebo   C: Combination
      Description                                                          (N=15)       (N=15)         (N=15)    
    —————————————————————————————————————————————————————————————————————————————————————————————————————————————
    Total number of patients with at least one major protocol deviation   2 (13.3%)   4 (26.7%)          0       
    Total number of major protocol deviations                                 2           5              0       
    No Coding Available                                                                                          
      No Coding Available                                                 2 (13.3%)   4 (26.7%)          0

pdt01 can handle some NA values

Code
  cat(export_as_txt(res, lpp = 100, cpp = 200))
Output
    Category                                                              A: Drug X   B: Placebo   C: Combination
      Description                                                          (N=15)       (N=15)         (N=15)    
    —————————————————————————————————————————————————————————————————————————————————————————————————————————————
    Total number of patients with at least one major protocol deviation   2 (13.3%)   4 (26.7%)          0       
    Total number of major protocol deviations                                 2           5              0       
    EXCLUSION CRITERIA                                                                                           
      Active or untreated or other excluded cns metastases                    0        1 (6.7%)          0       
    INCLUSION CRITERIA                                                                                           
      Ineligible cancer type or current cancer stage                      1 (6.7%)        0              0       
    MEDICATION                                                                                                   
      Discontinued study drug for unspecified reason                          0        1 (6.7%)          0       
      Received prohibited concomitant medication                              0        1 (6.7%)          0       
    PROCEDURAL                                                                                                   
      Eligibility-related test not done/out of window                         0        1 (6.7%)          0       
    No Coding Available                                                                                          
      No Coding Available                                                 1 (6.7%)     1 (6.7%)          0


Try the chevron package in your browser

Any scripts or data that you put into this service are public.

chevron documentation built on June 20, 2025, 5:08 p.m.