From 69a427749a4b7c58b3a58ea43aadee985dc2e069 Mon Sep 17 00:00:00 2001 From: TinWoodman92 Date: Tue, 30 May 2023 18:34:47 -0500 Subject: added color designations for R and Python. --- source_file.r | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'source_file.r') diff --git a/source_file.r b/source_file.r index bf041a6..b0bd8d9 100644 --- a/source_file.r +++ b/source_file.r @@ -1,3 +1,12 @@ -msg <- "hello world" +display_msg <- function(msg) { + cat( + '\033[94m', + msg, + sep = '', + end = '\033[0m\n' + ) +} -cat(msg, '\n') +msg <- "hello world - R" + +display_msg(msg) -- cgit v1.2.3