Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.19 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.19 KB

Hacking notes

This workbook use bookdown Rmarkdown technology. For usage follow Bookdown original documentation.

Dependencies

  1. You need to have R installed R installation guide

  2. 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')
  3. You need to install bookdown package

    # stable version on CRAN
    install.packages("bookdown")
    # or development version on GitHub
    # remotes::install_github('rstudio/bookdown')

Local build

Html output

Rscript -e "options(bookdown.render.file_scope = FALSE);bookdown::render_book('index.Rmd', 'bookdown::gitbook')"

Pdf output

RUN Rscript -e "options(bookdown.render.file_scope = FALSE);bookdown::render_book('index.Rmd', 'bookdown::pdf_book')"

docker build

docker build -t hacking-notes .
docker run -it --rm -p 8080:80 --name hacking-notes hacking-notes