From: Zhian N. Kamvar Date: Wed, 6 Jan 2021 02:08:35 +0000 (-0800) Subject: avoid ansi color characters from being printed X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/commitdiff_plain/3d5f6b527932d943ec0958b8324b2915f8c05d87 avoid ansi color characters from being printed --- diff --git a/bin/generate_md_episodes.R b/bin/generate_md_episodes.R index ce9e8aa..7fb4c5a 100644 --- a/bin/generate_md_episodes.R +++ b/bin/generate_md_episodes.R @@ -1,5 +1,9 @@ generate_md_episodes <- function() { + # avoid ansi color characters from being printed in the output + op <- options() + on.exit(options(op), add = TRUE) + options(crayon.enabled = FALSE) ## get the Rmd file to process from the command line, and generate the path ## for their respective outputs args <- commandArgs(trailingOnly = TRUE)