RPubs

Overview

RPubs is a free publishing service that allows you to share HTML reports created from R Markdown documents online. After creating and knitting an R Markdown file into an HTML report, you can publish the report to RPubs and receive a web link that can be shared with instructors, classmates, colleagues, or other audiences.

RPubs

Think of RPubs as a simple website that hosts the HTML version of your R Markdown report. Instead of sending someone your R script, data files, graphs, and written explanations separately, RPubs allows you to share a single link displaying your completed analysis in an organized format.

Viewers do not need R, RStudio, or programming experience to view an RPubs report. Anyone with the link can open the report in a web browser and view the content included in the published document, such as written explanations, tables, graphs, and, if included, R code.

RPubs is commonly used by students, researchers, and data analysts because it provides a quick and convenient way to publish and share statistical analyses, assignments, and reports online.

Benefits of RPubs

Benefit Explanation
Free RPubs provides free online publishing for R Markdown HTML reports.
Shareable Creates a web link that can be shared with others.
Accessible Viewers only need a web browser to view the published report.
Professional Format Displays text, code, graphs, and tables together in one organized document.

How to Publish R Markdown Files to RPubs

  1. Open your R Markdown file.
  2. Click the Knit button at the top of the document.
  3. After the HTML report appears, locate the Publish button in the Viewer pane.
  4. Select Publish to RPubs.
  5. Log in or create a free RPubs account.
  6. Enter a title and description for your report.
  7. Click Publish.
  8. Copy the generated URL and submit the link for your assignment.

How to Update an RPubs Report

  1. Open your R Markdown file and make your edits.
  2. Click Knit to generate an updated HTML report.
  3. Click Publish.
  4. Select Yes when asked whether you want to update the existing document.

How to Save an RPubs HTML File in Microsoft OneDrive

  1. Open your RPubs report in a web browser.
  2. Press Ctrl + S (Windows) or Command + S (Mac).
  3. Select a location on your computer.
  4. Choose Webpage, HTML Only if available.
  5. Save the file.

Key Takeaway

RPubs allows you to publish and share R Markdown reports online through a simple web link. Recipients can view your completed analysis, graphs, tables, and written explanations without needing R or RStudio.

In this course, RPubs will often be used to submit and share your completed R Markdown assignments because it provides an easy way to distribute professional, web-based reports.