Skip to content

Commit

Permalink
different way to reset options
Browse files Browse the repository at this point in the history
  • Loading branch information
shug0131 committed Nov 28, 2024
1 parent 96fb5ec commit a6c53a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/safety_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ df_to_char <- function(df){
#' @importFrom utils head

print.safety_summary <- function(x,...){
old_scipen <- getOption("scipen", default=0)
on.exit( options(scipen=old_scipen))
old_options <- options()
on.exit( options(old_options))
options(scipen=999)
cat("Group-Level Statistics\n\n")
print(x$GROUP)
Expand Down
Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.

0 comments on commit a6c53a6

Please sign in to comment.