Skip to content

Commit

Permalink
Remove try() wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed May 17, 2022
1 parent ccff57b commit ccbca87
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/rtf_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ rtf_output <- function(outdata,
}

if (!is.null(path_outtable)) {
try({
outdata$rtf |>
r2rtf::rtf_encode() |>
r2rtf::write_rtf(file = path_outtable)
}, silent = TRUE)
outdata$rtf |>
r2rtf::rtf_encode() |>
r2rtf::write_rtf(file = path_outtable)
message("The output is saved in", normalizePath(path_outtable))
}

Expand Down

0 comments on commit ccbca87

Please sign in to comment.