View source: R/build-workbook.R
Uses bookdown to build the workbook inside a specified folder
1 2 3 4 5 6 7 8 9 | bdc_build_workbook(
stage_folder = tempdir(),
source = system.file("workbook", package = "bigdataclass"),
db_folder = "database",
file_folder = "files",
book_folder = "books",
db_connection = "con <- connection_open(RSQLite::SQLite(), 'database/local.sqlite')",
dbi_connection = "con <- dbConnect(RSQLite::SQLite(), 'database/local.sqlite')"
)
|
stage_folder |
The folder where the book will be compiled |
source |
The path of the workbook |
db_folder |
Location of the source 'database' folder |
file_folder |
Location of the source 'files' folder |
book_folder |
Location of the source 'books' folder |
db_connection |
The 'connections' code to connect to the database |
dbi_connection |
The 'DBI' code to connect to the database |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.