| Start |
|---|
Style PromptsIf you want your code to be copy-pastable, remove prompts such as Console outputConsole output should be clearly distinguished from code. Common approaches include:
Assignment
Code commentsBe sure to explain the purpose and function of the code itself. There isn't any hard-and-fast rule on whether this explanation should be in prose or in code comments. Prose may be more readable and allows for longer explanations, but code comments make for easier copy-pasting. Keep both options in mind. SectionsMany examples are short enough to not need sections, but if you use them, start with H1 (opens new window). |
| Making good examples Most of the guidance for creating good examples (opens new window) for Q&A carries over into the documentation. There are some additional considerations in the context of Docs: RemarksTo discuss editing the R tag Docs, visit the R chat (opens new window). |
Read Article
https://develop.horje.com/learn/1434/reference