Skip to content

Commit

Permalink
save as csv not html
Browse files Browse the repository at this point in the history
  • Loading branch information
Linda Nab committed Nov 22, 2023
1 parent 83df1db commit 6294b14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analysis/table_ccw.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ args <- commandArgs(trailingOnly=TRUE)
if(length(args)==0){
# use for interactive testing
period <- "ba1"
model <- "cox"
model <- "plr"
subgrp <- "full"
supp <- "main"
} else {
Expand Down Expand Up @@ -148,6 +148,6 @@ output_combined <-
# 2. Save
################################################################################
file_name <-
make_filename("table_ccw", period, outcome = "primary", contrast = "", model, subgrp, supp, "html")
gtsave(gt(output_combined),
fs::path(tables_dir, file_name))
make_filename("table_ccw", period, outcome = "primary", contrast = "", model, subgrp, supp, "csv")
write_csv(output_combined,
fs::path(tables_dir, file_name))

0 comments on commit 6294b14

Please sign in to comment.