Updated answer (I just realized you were looking for not just PDF, but PDF OR HTML):
You should be able to just click File>Save Version
and have your notebook render, so I suspect that some of your settings are wrong if you're not able to do that.
- Go through this checklist to make sure it's setup correctly. In the editor, make sure your settings are as follows:
- Editor menu bar>File>Editor Type: select Script
- Editor menu bar>File>Language: select 'RMarkdown'
- Make sure your YAML includes the output format. It should look like below, with the critical line being
output: html_notebook
---
title: "Untitled"
author: "Garrett"
date: "July 10, 2014"
output: html_notebook
---
Click on the menu bar>File>Save Version. This will render your report and save the output.
In the window that pops-up showing that your workbook has being created, click on the three dots and select 'Open in Viewer' when it says it was Successful in creating it.
In the 'Report' view for this report, right-click on something from your report and select 'View Frame Source'. This will open up the HTML source code for your report. (I'm using Chrome on windows - not sure if other browsers have same options).
With the source window open, remove view-source:
from the start of the URL and you'll see just the HTML output of your notebook. Right click the page to print to PDF or save to HTML.
Note: There are some settings in the HTML/javascript that prevent scrolling of the window, but that's not an area I'm familiar with so can't help with that