- 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:
推薦閱讀
- DBA攻堅指南:左手Oracle,右手MySQL
- Facebook Application Development with Graph API Cookbook
- Python入門很簡單
- Getting Started with CreateJS
- Rust Cookbook
- MATLAB定量決策五大類問題
- Hands-On Full Stack Development with Go
- Integrating Facebook iOS SDK with Your Application
- Python從入門到精通
- Android群英傳
- Getting Started with Python and Raspberry Pi
- Azure Serverless Computing Cookbook
- Clojure for Java Developers
- Mastering Android Studio 3
- Kotlin進階實戰