Title | How to write inline code (info from the R website) |
---|---|
Author | kelly newman |
Course | Data Science |
Institution | University of Sydney |
Pages | 1 |
File Size | 132 KB |
File Type | |
Total Downloads | 62 |
Total Views | 140 |
This is information from the R official website in pdf form so it can be viewed offline....
10/20/21, 6:40 PM
Inline Code
R Markdown (index.html) from
(https://www.rstudio.com/)
Introduction (lesson-1.html)
Inline Code
How It Works (lesson-2.html)
Code results can be inserted directly into the text of a .Rmd file by enclosing the code
Code Chunks (lesson-3.html) Inline Code (lesson-4.html)
with `r ` . The file below uses `r ` twice to call colorFunc , which returns “heat.colors.” You can open the file here (https://rstudio.cloud/project/181921) in RStudio Cloud.
Code Languages (lesson-5.html) Parameters (lesson-6.html) Tables (lesson-7.html) Markdown Basics (lesson-8.html) Output Formats (lesson-9.html) Notebooks (lesson-10.html) Slide Presentations (lesson-11.html) Dashboards (lesson-12.html) Websites (lesson-13.html) Using `r ` makes it easy to update the report to refer to another function. Interactive Documents (lesson14.html) Cheatsheets (lesson-15.html)
R Markdown will always display the results of inline code, but not the code apply relevant text formatting to the results As a result, inline output is indistinguishable from the surrounding text. Inline expressions do not take knitr options....