The bookdown package makes it easy to create books with R Markdown and RStudio. These can be easily published online and in various formats: HTML, PDF, ePub, and Kindle. Read about bookdown and see hundreds of online books written with it at bookdown.org.
Once you are ready to write your own book, read the online documentation.
Examples:
Download a zip file of the bookdown-demo repository. You can use the ‘download zip file’ button on the GitHub repository or you can navigate to your ‘RWorkflow’ folder in RStudio and click ‘More’ in the Files panel and select ‘Set as working directory’. Then issue these commands.
library(RWorkflowsetup)
download.repo("bookdown-demo")
INCOIS participants: You will find a copy of the repository in the RWorkflow directory that you copied from the thumb drive.
This is a copy of the original bookdown-demo by Yihui Xie, the creator of the bookdown package, with a few changes so it works immediately with GitHub.
Your book should appear.
You can host your book many places. To do so on GitHub, do the following.
bookdown-demo
as the name and <yourbasedir>\RWorkflow
as the local path. This assumes that the bookdown-demo folder is in the RWorkflow directory. If not, replace the path with the directory where you put the bookdown-demo folder.GitHub Pages
. Change the source to master branch/docs
folder and click save.https://<yourname>.github.io/bookdown-demo/
in a few minutes.