Reputation: 4243
I created a website (html file) using the rmarkdown::rendersite()
function in R. It works really well but it is just an html file.
How do I deploy this to github or another public server for me to make a publicly accessed url out of this?
My current github repository is here: https://github.com/nknauer/first_website
So far, I created a repository on github and followed the tutorial available here. However, I still couldn't make it into a webpage.
I guess the main question I'm asking is: has anyone tried this tutorial and successfully deployed a webpage (not just an html file) through github and are there other ways to do this from Rmarkdown?
Thanks!
Upvotes: 0
Views: 246
Reputation: 368231
In brief, here is one way:
docs/
directorydocs/
directory.docs/
. You are done.One example is eg this web page corresponding to this file based on this vignette directory.
Moving the files around is simple too; you could use Travis or other means. An older approach used a separate branch gh-pages
, but the current form is simpler.
Upvotes: 2