Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display verbatim code in R shiny?

Tags:

r

shiny

I'm currently using helpText in my ui.R file to display some static code content. However, because the output is not fixed width, the code looks like a mess. So how to display verbatim code; fixed width so it's easy to read?

like image 542
mchen Avatar asked Nov 01 '22 01:11

mchen


1 Answers

I'm not sure I understand the problem, but the first solution would be renderVerbatim. If that doesn't cut it, you could look at ShinyAce, though that may be overkill for what you need; if does have nice features like syntax highlighting for R, though.

like image 69
Jeff Allen Avatar answered Nov 15 '22 05:11

Jeff Allen