Table of Contents
Your RMD file will always remain as code and output files are regenerated during execution.
You can save the output file by choosing the KNIT option in the application, and knitting to HTML.
General Troubleshooting
When you Knit to HTML, you may encounter an error like the one below:
This is because all your manually imported Datasets (such as the ones imported using the R studio application) are ignored.
Knitting executes your code in a new, clean workspace. In order to Knit to HTML, you must ensure that you have included code to read in your datasets.
Example:
crx <- read_csv("CSV file name.csv")
MacOS Troubleshooting
If your Mac is having issues after trying the steps above, try this procedure to install XQuartz.
- Open R-Studio
- Select Tools -> Install packages
- In the new window enter stringi as the package
- Select Install
- Close R-Studio
- Open a web browser
- Visit xquartz.org
- Download XQuartz
- Install the XQuartz software
- Log-Out when prompted
Log back in, and R-Studio should now be able to build the HTML Notebook file properly.