This workbook use bookdown Rmarkdown technology. For usage follow Bookdown original documentation.
-
You need to have R installed R installation guide
-
install rmarkdown package
# Install from CRAN install.packages('rmarkdown') # Or if you want to test the development version, # install from GitHub if (!requireNamespace("devtools")) install.packages('devtools') devtools::install_github('rstudio/rmarkdown')
-
You need to install bookdown package
# stable version on CRAN install.packages("bookdown") # or development version on GitHub # remotes::install_github('rstudio/bookdown')
Rscript -e "options(bookdown.render.file_scope = FALSE);bookdown::render_book('index.Rmd', 'bookdown::gitbook')"
RUN Rscript -e "options(bookdown.render.file_scope = FALSE);bookdown::render_book('index.Rmd', 'bookdown::pdf_book')"
docker build -t hacking-notes .
docker run -it --rm -p 8080:80 --name hacking-notes hacking-notes