2 hours
In your GitHub account, create a new repository (the
name doesn’t matter) and make sure to check the box for Initialize this repo
with a README file. Open Finder of Windows explorer on your computer.
Navigate to the DtSTUDENT2018 directory and find the .html file you’ve been knitting.
Rename this file to index.html
.
On GitHub, click on ‘Upload a file’. Drag index.html to the box and click the green button at the bottom. Now go to settings on GitHub. Scroll down to the GHPages section and click the dropbown to select masster. Click Save. If you now scroll down to the GHPages section you’ll see a github.io url. Copy this and go back to the code section of your GitHub Repository. Click and add the url. If you click on this link you’ll see your report!
Open your document in Rstudio. Click Knit. You’ll see a publish button in the item view pane - click it. You’ll be redirected to the rpubs web site. If you don’t have an account you’ll need to register. You’ll see a screen with basic metadata, but all is optional. Your document is published online!
Check the DataTrieste18 Etherpad for resources to learn more about reproducible reporting with RMarkdown and knitr.