opts_knit$set(base.dir='./', fig.path='', out.format='md') opts_chunk$set(prompt=TRUE, comment='', results='markup') # See yihui.name/knitr/options for more Knitr options. ##### Put other setup R code here
The final step is to publish your Gitbook to Github. The publishGitbook is a wrapper to git that will publish your Gitbook to the gh-pages branch of the specified repository.
publishGitbook('jbryer/Rgitbook')
The parameters for the publishGitbook function are:
repo - The Github repository to publish to. It should be of the username/repository format.out.dir (default is the _book subdirectory of the current working directory) - The directory containing the generated Gitbook.message (default is "Update built gitbook") - The commit message.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.