All Projects → mlr-org → Mlr3book

mlr-org / Mlr3book

Licence: mit
mlr3 manual

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Mlr3book

rmd4sci
Rmarkdown for Scientists
Stars: ✭ 113 (+26.97%)
Mutual labels:  book, bookdown
Adv R
Advanced R: a book
Stars: ✭ 2,000 (+2147.19%)
Mutual labels:  bookdown, book
Tidy Text Mining
Manuscript of the book "Tidy Text Mining with R" by Julia Silge and David Robinson
Stars: ✭ 961 (+979.78%)
Mutual labels:  bookdown, book
Bookdown
Authoring Books and Technical Documents with R Markdown
Stars: ✭ 2,768 (+3010.11%)
Mutual labels:  bookdown, book
R4ds
R for data science: a book
Stars: ✭ 3,231 (+3530.34%)
Mutual labels:  bookdown, book
Data Science At The Command Line
Data Science at the Command Line
Stars: ✭ 3,174 (+3466.29%)
Mutual labels:  bookdown, book
Bookdown Crc
A minimal example of using bookdown to write a book for Chapman & Hall/CRC
Stars: ✭ 50 (-43.82%)
Mutual labels:  bookdown, book
Patterns
Complete catalog of all classical patterns in the Archimate language
Stars: ✭ 70 (-21.35%)
Mutual labels:  book
Steins Git
「GitをSteins;Gateの世界観を使って説明する」薄い本
Stars: ✭ 79 (-11.24%)
Mutual labels:  book
Spring Boot Building Api Backend
Code of the 'Practical Guide to Building an API Back End with Spring Boot' book
Stars: ✭ 69 (-22.47%)
Mutual labels:  book
Livro Nodejs
Livro de NodeJS
Stars: ✭ 68 (-23.6%)
Mutual labels:  book
Learn Vim
Vim 实操教程(Learning Vim)Vim practical tutorial.
Stars: ✭ 1,166 (+1210.11%)
Mutual labels:  book
Django Crash Starter
The Cookiecutter template for the Django Crash Course tutorial by Daniel and Audrey Feldroy.
Stars: ✭ 80 (-10.11%)
Mutual labels:  book
21 Recipes
📕 An R/rtweet edition of Matthew A. Russell's Python Twitter Recipes Book
Stars: ✭ 69 (-22.47%)
Mutual labels:  book
Yii Application Cookbook 2nd Edition Code
Code of the second edition of Yii Application Development Cookbook
Stars: ✭ 84 (-5.62%)
Mutual labels:  book
Real Time Rendering 3rd Cn Summary Ebook
📘 电子书 -《Real-Time Rendering 3rd》提炼总结 | 全书共9万7千余字。你可以把它看做中文通俗版的《Real-Time Rendering 3rd》,也可以把它看做《Real-Time Rendering 3rd》的解读版与配套学习伴侣,或者《Real-Time Rendering 4th》的前置阅读材料。
Stars: ✭ 1,159 (+1202.25%)
Mutual labels:  book
Yiiframework ru cookbook
Russian Yii 1.1 cookbook
Stars: ✭ 85 (-4.49%)
Mutual labels:  book
Ehr
The code repository for the prototypes included in the eBook "Inspired EHRs - Designing for Clinicians" (inspiredEHRs.gov). The code of the prototypes is made available under the Apache 2.0 open source license. This license agreement allows anyone to freely use the code and ideas presented in this book, subject to the conditions listed at http://opensource.org/licenses/Apache-2.0.
Stars: ✭ 83 (-6.74%)
Mutual labels:  book
You Dont Know Js Epub
"You Don't Know JS Yet" (2nd Edition) ePub generator.
Stars: ✭ 76 (-14.61%)
Mutual labels:  book
Tsunami
A parallel shallow water equations solver
Stars: ✭ 76 (-14.61%)
Mutual labels:  book

mlr3book

mlr3book StackOverflow Mattermost

Package to build the mlr3 bookdown book.

Rendered Versions

Building the book

To install all necessary dependencies for the book, install this R package using remotes:

remotes::install_github("mlr-org/mlr3book", dependencies = TRUE)

To build the book, run one of the following commands:

# HTML
withr::with_dir("bookdown", bookdown::render_book("index.Rmd",
  output_format = "bookdown::gitbook"))

# PDF
withr::with_dir("bookdown", bookdown::render_book("index.Rmd",
  output_format = "bookdown::pdf_book"))

Serve the book

Alternatively, you "serve" the book via a local server:

bookdown::serve_book("bookdown")

The command above starts a service which automatically (re-)compiles the bookdown sources in the background whenever a file is modified. If your browser does not open automatically, go to http://127.0.0.1:4321/.

Makefile approach

Alternatively, you can use the provided Makefile (c.f. see make help). This way, you can

  • install dependencies
  • build the HTML book -> make html
  • build the PDF book (bookdown:pdf_book) -> make pdf

File system structure

The root directory is a regular R package. The book itself is in the subdirectory "bookdown".

Style Guide

Lists

For lists please use * and not -.

Chunk Names

Chunks are named automatically as [chapter-name]-# by calling name_chunks_mlr3book():

mlr3book::name_chunks_mlr3book()

or alternatively executing make names from the terminal.

Figures

You have to options to include a figure:

  1. Vector graphic
  • In the Rmd: knitr::include_graphics("images/some_figure.svg")
  • Add bookdown/images/some_figure.svg and bookdown/images/some_figure.pdf to the repository.
  1. Pixel graphic
  • In the Rmd: knitr::include_graphics("images/some_figure.png")
  • Add only bookdown/images/some_figure.png to the repository.
  • Do not use markdown syntax [](<figure>) to include figures.
  • Do not include pdf in the Rmd: knitr::include_graphics("images/some_figure.pdf").

Adding a new figure

To add a new figure into the repository consider the following rules:

  • Add the file in the bookdown/images folder without any subdirectory.
  • Store the original figure as a svg file if possible, i.e. if it is a vector graphic. This allows us to re-use or modify images in the future.
  • png files should have reasonable resolution, i.e. the width of a pixel graphic should be between 400px and 2000px. If a higher resolution is needed to obtain a readable plot you are probably doing something wrong, e.g. use a pixel graphic where you should use a vector graphic.
  • Please look at the file size.
    • If your pdf or svg file is larger than 1MB it probably contains unnecessary hidden content or unvectorized parts.
    • If your png file is larger than 1MB the resolution is probably too big.

Further aspects

  • How do I convert svg to pdf?
    • Use Inkscape or any other tool which does not convert to raster images.
  • How do I convert pdf to svg?
    • Use Inkscape which allows you to also remove unwanted parts of the pdf.
  • Do not use screenshots!
    • Google Slides allows svg export.
    • PDF can be converted to svg and you can even cut parts.
    • HTML can be converted to svg.
  • The difference between vector (svg) and pixel (png) graphics should be known.
    • Attention: svg and pdf also support to include pixel graphics. There is no guarantee that a svg or pdf is a pure vector graphic. If you paste a pixel graphic (e.g. a screenshot) into Inkscape and save it as svg it does not magically become a vector graphic.

Spacing

  • Always start a new sentence on a new line, this keeps the diff readable.
  • Put an empty line before and after code blocks.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].