-
Book Overview & Buying
-
Table Of Contents
Mastering RStudio: Develop, Communicate, and Collaborate with R
By :
As mentioned, the man folder contains all the necessary documentation files. It consists of R documentation files, which can be recognized by their file extension Rd.
Documenting our R code as well as possible is very important. It gives other people the chance to understand our functions and how to actually implement them into their workflow.
After creating the project, this folder contains a basic documentation file for the project in general. The R documentation files are written in the so-called Rd-format, which is closely related to LaTeX and can be processed into various output formats including HTML or plain text.
We have two ways to create an Rd file:
We can call the prompt() function in the R console and send as an argument the function we want to create a documentation file for. So the function call prompt(lm) would create the lm.Rd file in our current working directory. We can then move this file to the man folder...
Change the font size
Change margin width
Change background colour