#!/usr/bin/env Rscript

require(bookdown)

bookdown::render_book("index.Rmd", "bookdown::gitbook")
bookdown::render_book("index.Rmd", "bookdown::pdf_book")
bookdown::render_book("index.Rmd", "bookdown::epub_book")
#!/bin/sh

Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')" 
Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::pdf_book')" 
Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::epub_book')" 

Update _buil.sh to use Rscript
Update _buil.sh to use Rscript
