Thursday, February 6, 2014
Uploading to Rpubs on Windows OS from R
http:www.rpubs.com provides a free and easy method to upload R markdown and html output (via library knitr) to the web. You can register for free at the home page and be uploading R products in minutes. This tool makes it easy to share your code and output with colleagues for review collaboration or any other purpose. rpubs is an RStudio product (www.rstudio.com) and can be used to embed R code and output in clean and readable html files. Using RStudio, you need to 1) write some R code, 2) select the Compile Notebook option from the file menu (see below)
3) Next select will see a screen to name your output and (provide authorship if you wish) 4) Click the "Compile" button and your code will execute and be rendered to html in a nice looking format. Example below
5) Select the "Publish" button, and prompt to confirm with Rpubs will appear and you should be done with a single confirmation click on "Publish".
6) However, on my Windows 7 machine I received the following upload error:
7) I did some Googling and found that adding an option to my R profile solved the problem. I opened my Rprofile that was here on my machine using Notepad +:
8) Last, I pasted in the following snippet in my profile (Highlighted in gray).
9) I saved the changes, restarted R and everything worked as intended.
Subscribe to:
Post Comments (Atom)






No comments:
Post a Comment