Skip to content

Commit

Permalink
clean up readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Jul 17, 2024
1 parent 931a21a commit 405cf66
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 551 deletions.
18 changes: 18 additions & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# set default chunk options
knitr::opts_chunk$set(
echo = TRUE,
comment = "",
collapse = FALSE,
prompt = FALSE
)

local({
hook_old <- knitr::knit_hooks$get("output") # save the old hook
knitr::knit_hooks$set(output = function(x, options) {
regex = "(?:(?:\\x{001b}\\[)|\\x{009b})(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\\x{001b}[A-M]"
out <- gsub(regex, "", x, perl = TRUE, useBytes = TRUE)
hook_old(out, options)
})
})

Sys.setenv(NXF_ANSI_LOG = "FALSE")
Loading

0 comments on commit 405cf66

Please sign in to comment.