Welcome to Supervised Machine Learning for Text Analysis in R
This is the website for Supervised Machine Learning for Text Analysis in R! Visit the GitHub repository for this site, or buy a physical copy from CRC Press, Bookshop.org, or Amazon.
This online work by Emil Hvitfeldt and Julia Silge is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
13.3.4.2 From geocompr
From https://github.com/open-canada/geocompr/blob/main/index.Rmd.
First you do this:
``{r index-1, echo=FALSE}
is_html = knitr::is_html_output()
``
Then this:
``{asis index-2, echo=is_html}
This is the online version of The R4GC Book.
``
13.3.4.3 With Shiny in flexdashboard
You can also use it when you (don’t) want to run a Shiny code. See Chapter on [Shiny]
13.3.5 Automated compilation of Rmd files in GitHub using GitHub Actions
See how this is done here: https://github.com/open-canada/geocompr/tree/main/.github/workflows
The main.yaml
script compiles the source (located in https://github.com/open-canada/geocompr) into a bookdown book (located in
https://github.com/open-canada/geocompr/tree/gh-pages and viewable at https://open-canada.github.io/geocompr/)