I have a R notebook in Kaggle that I would like to convert to pdf or html. All the solutions I have found in the forums seem to be python oriented.
Is there any way to get that? Is there any third-party tool to convert it to the format of my choice?
I have a R notebook in Kaggle that I would like to convert to pdf or html. All the solutions I have found in the forums seem to be python oriented.
Is there any way to get that? Is there any third-party tool to convert it to the format of my choice?
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.
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