The bookdown package can be used to build gitbook books from multiple R markdown documents. The process for doing so is well-documented for a single user with a directory of R markdown documents.
A more complicated use case includes some additional requirements.
remotes::install_github('seandavi/CollaborativeBookdown')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.