- Mastering RStudio:Develop,Communicate,and Collaborate with R
- Julian Hillebrand Maximilian H. Nierhoff
- 215字
- 2021-08-20 10:42:30
Getting started with R Markdown in RStudio
Let's recapitulate, that R Markdown uses various technologies and is seamlessly embedded in RStudio.
Creating your first R Markdown document
To create an R Markdown document, perform the following steps:
- First, click on the new file icon in RStudio and select R Markdown....
- This will open a new popup window where you can adjust a variety of settings.
- For our first document, we will leave all these settings as they are. You may change the Title and the Author name.
- After hitting the OK button, RStudio will automatically open a new prefilled
.Rmd
file. - For a first test run, just click on the Knit HTML button with the small ball of yarn icon before the corresponding text.
As you can see, the knitted file opens by default in a preview window.
- Instead of using the default option, it is recommended that you change the settings so that RStudio opens the output of a knitted
.Rmd
file in a dedicated viewer pane. Click on the small down-pointing arrow, to the right of the Knit HTML button, and check View in Pane to enable the pane view. - With this setting, it is now possible to write and generate R Markdown documents side-by-side, and that too, in a very comfortable manner:
推薦閱讀
- UNIX編程藝術
- Koa開發:入門、進階與實戰
- Visual Basic程序設計實驗指導(第4版)
- Create React App 2 Quick Start Guide
- Kotlin極簡教程
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- 實戰Python網絡爬蟲
- 征服C指針(第2版)
- 川哥教你Spring Boot 2實戰
- Mastering Data Analysis with R
- Practical Time Series Analysis
- OpenCL異構并行計算:原理、機制與優化實踐
- Learning WebRTC
- 大學計算機基礎
- Scratch少兒編程思維訓練:培養孩子的邏輯思維和計算思維能力