From 3d5f6b527932d943ec0958b8324b2915f8c05d87 Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Tue, 5 Jan 2021 18:08:35 -0800 Subject: [PATCH] avoid ansi color characters from being printed --- bin/generate_md_episodes.R | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.30.2