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.
R Studio Knit to HTML

General Troubleshooting

When you Knit to HTML, you may encounter an error like the one below:
Error While opening File - R Studio

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.

  1. Open R-Studio
  2. Select Tools -> Install packages
  3. In the new window enter stringi as the package
  4. Select Install
  5. Close R-Studio
  6. Open a web browser
  7. Visit xquartz.org
  8. Download XQuartz
  9. Install the XQuartz software
  10. Log-Out when prompted

Log back in, and R-Studio should now be able to build the HTML Notebook file properly.