Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RStudio syntax formatting - Bold function names

I'm reading through Hadley Wickham's Advanced-R web text and noticed that the code is shown has syntax highlighting that bolds the names of functions. I find this incredibly easy to read and I was wondering how I might be able to apply that to my own code?

Reference:

bold function names

like image 509
dsifford Avatar asked Nov 24 '25 18:11

dsifford


2 Answers

You might find the formatting details in this package:

Bookdown: The bookdown package is used to power http://adv-r.had.co.nz

like image 112
Ben Avatar answered Nov 27 '25 08:11

Ben


In the latest version of RStudio (I'm working with v1.1.4), you can enable an option to highlight functions calls.

Simply check the box in Tools > Global options > Code > Display > "Highlight R functions calls".

like image 40
Dan Chaltiel Avatar answered Nov 27 '25 10:11

Dan Chaltiel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!