library(magrittr) knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of abjBook is to build ABJ books fast.
You can install abjBook from github with:
# install.packages("devtools") devtools::install_github("abjur/abjBook")
This is a basic example which shows you how to create a new book:
abjBook::setup_abj_book("myNewBook", path = "./exampleBook")
If you are using GitHub, We recommend that you i) create a repository, ii) clone it to the desired folder, say /path/to/folder/myBook and iii) run abjBook::setup_abj_book("myBook", "/path/to/folder/").
Now your directory will look like this:
paste0("- ", dir("exampleBook")) %>% sort() %>% cat(sep = "\n")
index.Rmd file has some nice tips on how to print images and render tables using this template.Ctrl+Shift+K (knit button) on index.Rmd, hopefully it will render the book inside _book folder. _bookdown_files folder is also generated, but don't bother. index.html file inside the _book folder in the browser, you'll see the compiled book.xx-yyyy.Rmd files will have the contents of your book. May the tidyverse be with you.abj_book.Rproj is the R project file. You should rename it to the name of your github repo.bibliography folder has the .bib files. We recommend you to change the book.bib file inside it._output.yml is used to configure outputs. If you are using more than one output, you should compile index.Rmd with Ctrl+Shift+B (build button) instead of knit._bookdown.yml configures chapters naming scheme and other bookdown options. Don't change the defaults unless you really need to do that.imgs folder is used to store all your images in png, jpg or even pdf.latex folder has some additional configuration files to use ABJ pdf template. Don't change it.This template is the basis of all ABJ technical reports and should be used in all our projects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.