diff --git a/.github/ISSUE_TEMPLATE/problem-report.md b/.github/ISSUE_TEMPLATE/problem-report.md
index bfaee7a..5d09837 100644
--- a/.github/ISSUE_TEMPLATE/problem-report.md
+++ b/.github/ISSUE_TEMPLATE/problem-report.md
@@ -1,6 +1,6 @@
---
name: Problem Report
-about: Create a report to help improve leanbuild and its documentation
+about: Create a report to help improve ottr and its documentation
title: problem
labels: bug
assignees: cansavvy
@@ -24,7 +24,7 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
-What does the render look like versus what did you write and supply to `leanbuild`?
+What does the render look like versus what did you write and supply to `ottr`?
**Additional context**
Add any other context about the problem here.
diff --git a/.github/workflows/update-leanpub.yml b/.github/workflows/update-leanpub.yml
index 79ecdbe..446a21c 100644
--- a/.github/workflows/update-leanpub.yml
+++ b/.github/workflows/update-leanpub.yml
@@ -3,7 +3,7 @@
name: Update Leanpub Upon Merge
-# Triggers the workflow AFTER changes to leanbuild have been merged
+# Triggers the workflow AFTER changes to ottr have been merged
on:
workflow_dispatch:
push:
@@ -24,20 +24,20 @@ jobs:
repository: jhudsl/OTTR_Quizzes
token: ${{ secrets.GH_PAT }}
- # Copy over the latest leanbuild and use that for the run
- - name: Get latest leanbuild
+ # Copy over the latest ottr and use that for the run
+ - name: Get latest ottr
run: |
sudo apt-get install -y --no-install-recommends subversion
- # Copy over the latest leanbuild build
- svn export https://github.com/${GITHUB_REPOSITORY}.git/branches/master leanbuild/
+ # Copy over the latest ottr build
+ svn export https://github.com/${GITHUB_REPOSITORY}.git/branches/master ottr/
# Run leanpub rendering
- - name: Run leanbuild::bookdown_to_leanpub
+ - name: Run ottr::bookdown_to_leanpub
run: |
- Rscript -e "devtools::load_all('leanbuild'); leanbuild::bookdown_to_leanpub(footer_text = '*Please provide any feedback with [this form!](https://forms.gle/hc8Xt3Y2Znjb6M4Y7) We appreciate your thoughts.*')"
- Rscript -e "devtools::load_all('leanbuild'); leanbuild::render_coursera(convert_quizzes = TRUE)"
- rm -r leanbuild
+ Rscript -e "devtools::load_all('ottr'); ottr::bookdown_to_leanpub(footer_text = '*Please provide any feedback with [this form!](https://forms.gle/hc8Xt3Y2Znjb6M4Y7) We appreciate your thoughts.*')"
+ Rscript -e "devtools::load_all('ottr'); ottr::render_coursera(convert_quizzes = TRUE)"
+ rm -r ottr
- name: Create PR with newly rendered docs files
@@ -45,15 +45,15 @@ jobs:
id: cpr
with:
token: ${{ secrets.GH_PAT }}
- commit-message: Show latest leanbuild changes
+ commit-message: Show latest ottr changes
signoff: false
branch: auto_copy_rendered_files
delete-branch: true
- title: 'GHA: Automated transfer re-render with leanbuild update'
+ title: 'GHA: Automated transfer re-render with ottr update'
body: |
### Description:
- This PR has changes to this repository's files using the latest leanbuild package changes!
- If they don't look right, file an issue on the leanbuild package: https://github.com/jhudsl/leanbuild/issuesand do not merge.
+ This PR has changes to this repository's files using the latest ottr package changes!
+ If they don't look right, file an issue on the ottr package: https://github.com/jhudsl/ottr/issuesand do not merge.
labels: |
automated
reviewers: $GITHUB_ACTOR
diff --git a/DESCRIPTION b/DESCRIPTION
index 92a17d6..4a1b192 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,4 +1,4 @@
-Package: leanbuild
+Package: ottr
Version: 0.1.2
Title: Tools for Creating Automated Courses
Description: Leverages the 'bookdown' package and other tools to create courses
@@ -48,6 +48,6 @@ Remotes: jhudsl/text2speech,
ByteCompile: true
Type: Package
VignetteBuilder: knitr
-URL: https://github.com/jhudsl/leanbuild
-BugReports: https://github.comjhudsl/leanbuild/issues
+URL: https://github.com/jhudsl/ottr
+BugReports: https://github.comjhudsl/ottr/issues
RoxygenNote: 7.1.1
diff --git a/LICENSE.md b/LICENSE.md
index ca74e24..eef9374 100644
--- a/LICENSE.md
+++ b/LICENSE.md
@@ -573,7 +573,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this
when it starts in an interactive mode:
- leanbuild Copyright (C) 2021 John Muschelli
+ ottr Copyright (C) 2021 John Muschelli
This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'show c' for details.
diff --git a/NEWS.md b/NEWS.md
index 36250e0..58ff914 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,3 @@
-# leanbuild 0.1.0
+# ottr 0.1.0
* Added a `NEWS.md` file to track changes to the package.
diff --git a/R/bookdown_to_leanpub.R b/R/bookdown_to_leanpub.R
index 1c7ba82..7a657a3 100644
--- a/R/bookdown_to_leanpub.R
+++ b/R/bookdown_to_leanpub.R
@@ -175,7 +175,7 @@ copy_quizzes <- function(quiz_dir = "quizzes", output_dir = "manuscript") {
#' @param remove_resources_start remove the word `resources/` at the front
#' of any image path.
#' @param run_quiz_checks TRUE/FALSE run quiz checks
-#' @param make_book_txt Should [leanbuild::bookdown_to_book_txt()] be run
+#' @param make_book_txt Should [ottr::bookdown_to_book_txt()] be run
#' to create a `Book.txt` in the output directory?
#' @param quiz_dir directory that contains the quiz .md files that should be
#' checked and incorporated into the Book.txt file. If you don't have quizzes,
diff --git a/R/coursera.R b/R/coursera.R
index a75c32b..2b30b36 100644
--- a/R/coursera.R
+++ b/R/coursera.R
@@ -229,7 +229,7 @@ render_coursera <- function(output_dir = file.path("docs", "coursera"),
toc_close_css <- file.path(root_dir, "assets", "toc_close.css")
if (!file.exists(toc_close_css)) {
- download.file("https://raw.githubusercontent.com/jhudsl/leanbuild/master/inst/extdata/toc_close.css",
+ download.file("https://raw.githubusercontent.com/jhudsl/ottr/master/inst/extdata/toc_close.css",
destfile = toc_close_css
)
}
diff --git a/R/example_data.R b/R/example_data.R
index 2334f95..a220936 100644
--- a/R/example_data.R
+++ b/R/example_data.R
@@ -11,7 +11,7 @@ good_quiz_path <- function() {
list.files(
pattern = "quiz_good.md$",
recursive = TRUE,
- system.file("extdata", package = "leanbuild"),
+ system.file("extdata", package = "ottr"),
full.names = TRUE
)
}
@@ -27,7 +27,7 @@ bad_quiz_path <- function() {
list.files(
pattern = "quiz_bad.md$",
recursive = TRUE,
- system.file("extdata", package = "leanbuild"),
+ system.file("extdata", package = "ottr"),
full.names = TRUE
)
}
@@ -40,11 +40,11 @@ bad_quiz_path <- function() {
#' @importFrom fs dir_copy
#' @examples
#' # Run this to get the files we need
-#' example_files <- leanbuild::example_repo_setup()
+#' example_files <- ottr::example_repo_setup()
example_repo_setup <- function(dest_dir = ".") {
bookdown_path <- list.files(
pattern = "_bookdown.yml$",
- system.file("extdata/", package = "leanbuild"),
+ system.file("extdata/", package = "ottr"),
full.names = TRUE
)
@@ -65,7 +65,7 @@ example_repo_setup <- function(dest_dir = ".") {
#' @examples
#'
#' # Run this to get the files we need
-#' example_files <- leanbuild::example_repo_setup()
+#' example_files <- ottr::example_repo_setup()
#'
#' # Run this to delete them
#' example_repo_cleanup(files_to_remove = basename(example_files))
diff --git a/R/quiz.R b/R/quiz.R
index 697c33d..c1d770b 100644
--- a/R/quiz.R
+++ b/R/quiz.R
@@ -264,7 +264,7 @@ extract_quiz <- function(quiz_lines) {
#' Check Quiz Attributes
#'
-#' @param quiz_specs The output from [leanbuild::parse_quiz].
+#' @param quiz_specs The output from [ottr::parse_quiz].
#' @param quiz_name A character string indicating the name of the quiz being checked.
#' @param verbose Would you like progress messages? TRUE/FALSE
#'
@@ -314,10 +314,10 @@ check_quiz_attributes <- function(quiz_specs, quiz_name = NULL, verbose = TRUE)
}
#' Check a question's attributes
#'
-#' This is ran automatically by [leanbuild::check_all_questions] for all questions.
+#' This is ran automatically by [ottr::check_all_questions] for all questions.
#' It checks that the attributes specified are accepted ones by Leanpub.
#'
-#' @param question_df a data.frame obtained from [leanbuild::parse_quiz_df] and dplyr::group_split(question).
+#' @param question_df a data.frame obtained from [ottr::parse_quiz_df] and dplyr::group_split(question).
#' @param quiz_name inherited from parse
#' @param verbose print diagnostic messages
#'
@@ -361,14 +361,14 @@ check_quiz_question_attributes <- function(question_df,
#' Check all quiz questions
#'
-#' Takes output from [leanbuild::parse_quiz] and runs checks on each question in a quiz by calling [leanbuild::check_question] for each question.
+#' Takes output from [ottr::parse_quiz] and runs checks on each question in a quiz by calling [ottr::check_question] for each question.
#' First splits questions into their own data frame. Returns a list of messages/warnings about each question's set up.
#'
-#' @param quiz_specs quiz_specs which is output from [leanbuild::parse_quiz].
+#' @param quiz_specs quiz_specs which is output from [ottr::parse_quiz].
#' @param quiz_name The name of the quiz being checked.
#' @param verbose Whether progress messages should be given.
#'
-#' @return A list of the output from [leanbuild::check_question] with messages/warnings regarding each question and each check.
+#' @return A list of the output from [ottr::check_question] with messages/warnings regarding each question and each check.
#'
#' @export check_all_questions
#'
@@ -420,7 +420,7 @@ check_all_questions <- function(quiz_specs, quiz_name = NA, verbose = TRUE) {
#'
#' Check quiz question set up to see if it is compliant with Leanpub and Coursera needs.
#' Based off of [Markua guide](https://leanpub.com/markua/read#leanpub-auto-quizzes-and-exercises).
-#' Is called by [leanbuild::check_all_questions] and run for each question.
+#' Is called by [ottr::check_all_questions] and run for each question.
#'
#' @param question_df Which is an individual question's data frame after being parse from
#' @param quiz_name The name of the quiz the question is from
@@ -604,7 +604,7 @@ check_question <- function(question_df, quiz_name = NA, verbose = TRUE) {
#'
#' Check the formatting of all quizzes in a given directory.
#'
-#' @param quiz_dir A path to a directory full of quizzes that should all be checked with [leanbuild::check_all_quizzes].
+#' @param quiz_dir A path to a directory full of quizzes that should all be checked with [ottr::check_all_quizzes].
#' @param verbose print diagnostic messages
#' @param write_report TRUE/FALSE save warning report to a CSV file?
#'
diff --git a/R/remove_yaml.R b/R/remove_yaml.R
index 7e6e04b..88cc624 100644
--- a/R/remove_yaml.R
+++ b/R/remove_yaml.R
@@ -40,7 +40,7 @@ partition_yaml_front_matter <- function(input_lines) {
#' @export
#'
#' @examples
-#' file <- system.file("extdata/00_template.Rmd", package = "leanbuild")
+#' file <- system.file("extdata/00_template.Rmd", package = "ottr")
#' out <- remove_yaml_header(file)
#' head(out)
remove_yaml_header <- function(file) {
diff --git a/README.Rmd b/README.Rmd
index 1b0b716..849390d 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -3,7 +3,7 @@ output: github_document
---
-[![R-CMD-check](https://github.com/jhudsl/leanbuild/workflows/R-CMD-check/badge.svg)](https://github.com/jhudsl/leanbuild/actions)
+[![R-CMD-check](https://github.com/jhudsl/ottr/workflows/R-CMD-check/badge.svg)](https://github.com/jhudsl/ottr/actions)
@@ -16,17 +16,17 @@ knitr::opts_chunk$set(
)
```
-# leanbuild Package:
+# ottr Package:
-The goal of `leanbuild` is to provide tools to convert from Bookdown content to Leanpub content and do some checks.
+The goal of `ottr` is to provide tools to convert from Bookdown content to Leanpub content and do some checks.
## Installation
-You can install `leanbuild` from GitHub with:
+You can install `ottr` from GitHub with:
```{r gh-installation, eval = FALSE}
# install.packages("remotes")
-remotes::install_github("jhudsl/leanbuild")
+remotes::install_github("jhudsl/ottr")
```
@@ -36,7 +36,7 @@ Within a bookdown repository, you can run the following command to convert your
content to a Leanpub-ready format.
```{r, eval = FALSE}
-leanbuild::bookdown_to_leanpub()
+ottr::bookdown_to_leanpub()
```
By default the output files will be sent to a `manuscript` folder which is what Leanpub looks for.
diff --git a/README.md b/README.md
index 0c6aeda..0423b9a 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,31 @@
-[![R-CMD-check](https://github.com/jhudsl/leanbuild/workflows/R-CMD-check/badge.svg)](https://github.com/jhudsl/leanbuild/actions)
+[![R-CMD-check](https://github.com/jhudsl/ottr/workflows/R-CMD-check/badge.svg)](https://github.com/jhudsl/ottr/actions)
-# Intro to leanbuild
+# Intro to ottr
-`leanbuild` converts an [OTTR-made course](https://github.com/jhudsl/OTTR_Template/wiki) into a [Leanpub-ready](https://leanpub.com/) set of files.
+`ottr` converts an [OTTR-made course](https://github.com/jhudsl/OTTR_Template/wiki) into a [Leanpub-ready](https://leanpub.com/) set of files.
The output rendered files from this package can be published using the [Github writing mode on Leanpub](https://leanpub.com/lfm/read#leanpub-auto-switching-writing-modes).
-[Read the full documentation here](https://jhudatascience.org/leanbuild/docs/index.html).
+[Read the full documentation here](https://jhudatascience.org/ottr/docs/index.html).
## Required files:
-Before you are ready to run `leanbuild`, you will need the following files (which are standard in a `Bookdown` repository):
+Before you are ready to run `ottr`, you will need the following files (which are standard in a `Bookdown` repository):
- a `_bookdown.yml` file which lists the `.Rmd` files that are to be rendered in a `rmd: ` category (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/_bookdown.yml)).
- `.Rmd` files which contain the chapter content (including your `index.Rmd` file which `Bookdown` has).
- an `images` directory that contains any images that are referenced in the chapters.
- `.bib` file(s) to complete any citation renders (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/book.bib)).
_Optionally:_
-- [a `Book.txt` file](https://leanpub.com/lfm/read#leanpub-auto-booktxt-sampletxt-and-manuscript-files) which lists the order of the chapters/quiz files (this can be autogenerated with `leanbuild`) (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/Book.txt)).
+- [a `Book.txt` file](https://leanpub.com/lfm/read#leanpub-auto-booktxt-sampletxt-and-manuscript-files) which lists the order of the chapters/quiz files (this can be autogenerated with `ottr`) (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/Book.txt)).
- a directory containing quizzes in the form of `.md` files which have been written using the [Markua formatting specifications](https://leanpub.com/markua/read#leanpub-auto-quizzes-and-exercises) (see [example folder](https://github.com/jhudsl/OTTR_Quizzes/tree/main/quizzes)).
-Here's an example of what the Bookdown file set up (which leanbuild will look for) might be set up like:
+Here's an example of what the Bookdown file set up (which ottr will look for) might be set up like:
```
A_Bookdown_Repo
├── _bookdown.yml
@@ -53,16 +53,16 @@ git clone https://github.com/{organization}/OTTR_Quizzes.git
```
But replace `{organization}` with the location of your forked repository.
-## Installing leanbuild:
+## Installing ottr:
-You can install `leanbuild` from GitHub with:
+You can install `ottr` from GitHub with:
You will need to use the remotes package (and will need to install it if you don't have it).
``` r
if (!("remotes" %in% installed.packages())) {
install.packages("remotes")
}
-remotes::install_github("jhudsl/leanbuild")
+remotes::install_github("jhudsl/ottr")
```
## Setting up the Rmds and images folder:
@@ -71,40 +71,40 @@ Each of your Rmds needs to have this chunk of code in the beginning of the file:
`````{r}
```{r, include = FALSE}
-leanbuild::set_knitr_image_path()
+ottr::set_knitr_image_path()
```
`````
This will ensure that the images are stored in the correct place and will be rendered correctly both in `Bookdown` and in Leanpub.
-## Running leanbuild
+## Running ottr
-The `leanbuild` package converts your files using this main function:
+The `ottr` package converts your files using this main function:
```{r}
-leanbuild::bookdown_to_leanpub()
+ottr::bookdown_to_leanpub()
```
-By default, `leanbuild` will re-run a `bookdown::render_book("index.Rmd")` rendering of your chapters first before converting the files to the Leanpub ready format.
-However, if you wish to skip this step, you can set `render = FALSE` when running the `leanbuild::bookdown_to_leanpub()` function.
+By default, `ottr` will re-run a `bookdown::render_book("index.Rmd")` rendering of your chapters first before converting the files to the Leanpub ready format.
+However, if you wish to skip this step, you can set `render = FALSE` when running the `ottr::bookdown_to_leanpub()` function.
## About the Book.txt file:
Leanpub requires a [`Book.txt`](https://leanpub.com/lfm/read#leanpub-auto-booktxt-sampletxt-and-manuscript-files) file to know what order the chapters/quizzes should be published.
-By default, your `Book.txt` file will _not_ be autogenerated but `leanbuild` will look in your given directory for an existing `Book.txt` file which it will copy over to the output directory.
+By default, your `Book.txt` file will _not_ be autogenerated but `ottr` will look in your given directory for an existing `Book.txt` file which it will copy over to the output directory.
-You can create a `Book.txt` file manually, or if your quizzes and chapters are numbered, `leanbuild` can create the `Book.txt` file based on the numbers going from low to high and quizzes following chapters of the same number.
+You can create a `Book.txt` file manually, or if your quizzes and chapters are numbered, `ottr` can create the `Book.txt` file based on the numbers going from low to high and quizzes following chapters of the same number.
(e.g. `quiz_03.md` will be placed after `03-some_chapter_file.Rmd`).
-To have `leanbuild` attempt to autogenerate this file, set `make_book_txt` to `TRUE`.
+To have `ottr` attempt to autogenerate this file, set `make_book_txt` to `TRUE`.
```{r}
-leanbuild::bookdown_to_leanpub(make_book_txt = TRUE)
+ottr::bookdown_to_leanpub(make_book_txt = TRUE)
```
-If no `Book.txt` file is found and `make_book_txt` is set to `FALSE` (this is the default setting), `leanbuild` will fail.
+If no `Book.txt` file is found and `make_book_txt` is set to `FALSE` (this is the default setting), `ottr` will fail.
-A leanbuild autogenerated `Book.txt` file might look something like this:
+A ottr autogenerated `Book.txt` file might look something like this:
```
index.Rmd
01-chapter.Rmd
@@ -117,26 +117,26 @@ Also note that any `index.Rmd` will always be placed first and any `about.Rmd` f
## Setting up quizzes:
-By default, leanbuild will look for a folder called `quizzes/` to find your quiz `.md` files.
+By default, ottr will look for a folder called `quizzes/` to find your quiz `.md` files.
If your quizzes are located somewhere else, you will need to use the `quiz_dir` argument to specify that:
```{r}
-leanbuild::bookdown_to_leanpub(quiz_dir = "some_directory")
+ottr::bookdown_to_leanpub(quiz_dir = "some_directory")
```
## About the output files
Leanpub's Github writing mode will look for a directory called `manuscript` to publish from.
-You should not edit the files in `manuscript/` by hand since a re-run of `leanbuild` will cause your changes to be overwritten.
+You should not edit the files in `manuscript/` by hand since a re-run of `ottr` will cause your changes to be overwritten.
## Adding footer text:
-If there is text you would like added to the end of each chapter (like a link to a feedback survey for example), you can supply a character string to the `footer_text`argument in the main `leanbuild::bookdown_to_leanpub()` function.
+If there is text you would like added to the end of each chapter (like a link to a feedback survey for example), you can supply a character string to the `footer_text`argument in the main `ottr::bookdown_to_leanpub()` function.
```{r}
# Set up a character string
survey_link <- "Please provide any feedback you have in [this survey](www.some_link.org)"
# Supply the footer text in the main function
-leanbuild::bookdown_to_leanpub(footer_text = survey_link)
+ottr::bookdown_to_leanpub(footer_text = survey_link)
```
diff --git a/docs/404.html b/docs/404.html
index 4fb5e31..7881978 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -6,7 +6,7 @@
-
Page not found (404) • leanbuild
+Page not found (404) • ottr
@@ -70,7 +70,7 @@
- leanbuild
+ ottr0.1.2
@@ -104,7 +104,7 @@
-
+
diff --git a/docs/LICENSE.html b/docs/LICENSE.html
index 9fd823f..b40f64d 100644
--- a/docs/LICENSE.html
+++ b/docs/LICENSE.html
@@ -6,7 +6,7 @@
-GNU General Public License • leanbuild
+GNU General Public License • ottr
@@ -70,7 +70,7 @@
- leanbuild
+ ottr0.1.2
@@ -104,7 +104,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
-
leanbuild Copyright (C) 2021 John Muschelli
+
ottr Copyright (C) 2021 John MuschelliThis program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.This is free software, and you are welcome to redistribute itunder certain conditions; type 'show c'for details.
By default, leanbuild will re-run a bookdown::render_book("index.Rmd") rendering of your chapters first before converting the files to the Leanpub ready format. However, if you wish to skip this step, you can set render = FALSE when running the leanbuild::bookdown_to_leanpub() function.
+Running ottr
+
The ottr package converts your files using this main function:
By default, ottr will re-run a bookdown::render_book("index.Rmd") rendering of your chapters first before converting the files to the Leanpub ready format. However, if you wish to skip this step, you can set render = FALSE when running the ottr::bookdown_to_leanpub() function.
About the Book.txt file:
Leanpub requires a Book.txt file to know what order the chapters/quizzes should be published.
-
By default, your Book.txt file will not be autogenerated but leanbuild will look in your given directory for an existing Book.txt file which it will copy over to the output directory.
-
You can create a Book.txt file manually, or if your quizzes and chapters are numbered, leanbuild can create the Book.txt file based on the numbers going from low to high and quizzes following chapters of the same number. (e.g. quiz_03.md will be placed after 03-some_chapter_file.Rmd).
-
To have leanbuild attempt to autogenerate this file, set make_book_txt to TRUE.
If no Book.txt file is found and make_book_txt is set to FALSE (this is the default setting), leanbuild will fail.
-
A leanbuild autogenerated Book.txt file might look something like this:
+
By default, your Book.txt file will not be autogenerated but ottr will look in your given directory for an existing Book.txt file which it will copy over to the output directory.
+
You can create a Book.txt file manually, or if your quizzes and chapters are numbered, ottr can create the Book.txt file based on the numbers going from low to high and quizzes following chapters of the same number. (e.g. quiz_03.md will be placed after 03-some_chapter_file.Rmd).
+
To have ottr attempt to autogenerate this file, set make_book_txt to TRUE.
By default, leanbuild will look for a folder called quizzes/ to find your quiz .md files. If your quizzes are located somewhere else, you will need to use the quiz_dir argument to specify that:
By default, ottr will look for a folder called quizzes/ to find your quiz .md files. If your quizzes are located somewhere else, you will need to use the quiz_dir argument to specify that:
Leanpub’s Github writing mode will look for a directory called manuscript to publish from. You should not edit the files in manuscript/ by hand since a re-run of leanbuild will cause your changes to be overwritten.
+
Leanpub’s Github writing mode will look for a directory called manuscript to publish from. You should not edit the files in manuscript/ by hand since a re-run of ottr will cause your changes to be overwritten.
Added a NEWS.md file to track changes to the package.
diff --git a/docs/reference/01-intro.Rmd b/docs/reference/01-intro.Rmd
index 6dbc5b9..8f24ffe 100644
--- a/docs/reference/01-intro.Rmd
+++ b/docs/reference/01-intro.Rmd
@@ -3,7 +3,7 @@ title: "Course Title"
---
```{r, include = FALSE}
-leanbuild::set_knitr_image_path()
+ottr::set_knitr_image_path()
```
# Introduction
diff --git a/docs/reference/02-example-chapter.Rmd b/docs/reference/02-example-chapter.Rmd
index ff2e72a..c32c516 100644
--- a/docs/reference/02-example-chapter.Rmd
+++ b/docs/reference/02-example-chapter.Rmd
@@ -7,7 +7,7 @@ title: "Example Chapter"
Every chapter needs to start out with this chunk of code:
```{r, include = FALSE}
-leanbuild::set_knitr_image_path()
+ottr::set_knitr_image_path()
```
### Code examples
@@ -41,7 +41,7 @@ dev.off()
How to include a Google slide.
```{r, fig.align='center', echo = FALSE, fig.alt= "Major point!! example image"}
-leanbuild::include_slide("https://docs.google.com/presentation/d/1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ/edit#slide=id.gcc4fbee202_0_141")
+ottr::include_slide("https://docs.google.com/presentation/d/1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ/edit#slide=id.gcc4fbee202_0_141")
```
But if you have the slide or some other image locally downloaded you can also use html like this:
diff --git a/docs/reference/bad_quiz_path.html b/docs/reference/bad_quiz_path.html
index b9b82ec..75982d8 100644
--- a/docs/reference/bad_quiz_path.html
+++ b/docs/reference/bad_quiz_path.html
@@ -6,7 +6,7 @@
-Path to bad example quiz — bad_quiz_path • leanbuild
+Path to bad example quiz — bad_quiz_path • ottr
@@ -71,7 +71,7 @@
- leanbuild
+ ottr0.1.2
Takes output from [leanbuild::parse_quiz] and runs checks on each question in a quiz by calling [leanbuild::check_question] for each question.
+
Takes output from [ottr::parse_quiz] and runs checks on each question in a quiz by calling [ottr::check_question] for each question.
First splits questions into their own data frame. Returns a list of messages/warnings about each question's set up.
@@ -141,7 +141,7 @@
Arg
quiz_specs
-
quiz_specs which is output from [leanbuild::parse_quiz].
+
quiz_specs which is output from [ottr::parse_quiz].
quiz_name
@@ -155,7 +155,7 @@
Arg
Value
-
A list of the output from [leanbuild::check_question] with messages/warnings regarding each question and each check.
+
A list of the output from [ottr::check_question] with messages/warnings regarding each question and each check.
Examples
diff --git a/docs/reference/check_question.html b/docs/reference/check_question.html
index 9e4a9ff..235c785 100644
--- a/docs/reference/check_question.html
+++ b/docs/reference/check_question.html
@@ -6,7 +6,7 @@
-Check Quiz Question Set Up — check_question • leanbuild
+Check Quiz Question Set Up — check_question • ottr
@@ -42,7 +42,7 @@
+Is called by [ottr::check_all_questions] and run for each question." />
@@ -73,7 +73,7 @@
- leanbuild
+ ottr0.1.2
Check quiz question set up to see if it is compliant with Leanpub and Coursera needs.
Based off of [Markua guide](https://leanpub.com/markua/read#leanpub-auto-quizzes-and-exercises).
-Is called by [leanbuild::check_all_questions] and run for each question.
+Is called by [ottr::check_all_questions] and run for each question.
# Run this to get the files we need
-example_files<-leanbuild::example_repo_setup()
+example_files<-ottr::example_repo_setup()# Run this to delete themexample_repo_cleanup(files_to_remove =basename(example_files))
diff --git a/docs/reference/example_repo_setup.html b/docs/reference/example_repo_setup.html
index 925dede..333d148 100644
--- a/docs/reference/example_repo_setup.html
+++ b/docs/reference/example_repo_setup.html
@@ -6,7 +6,7 @@
-Set up example repo files — example_repo_setup • leanbuild
+Set up example repo files — example_repo_setup • ottr
@@ -71,7 +71,7 @@
- leanbuild
+ ottr0.1.2
# Run this to get the files we need
-example_files<-leanbuild::example_repo_setup()
+example_files<-ottr::example_repo_setup()
diff --git a/docs/reference/extract_meta.html b/docs/reference/extract_meta.html
index 2b92a6c..6c4560c 100644
--- a/docs/reference/extract_meta.html
+++ b/docs/reference/extract_meta.html
@@ -6,7 +6,7 @@
-Extract meta fields from a tag — extract_meta • leanbuild
+Extract meta fields from a tag — extract_meta • ottr
@@ -71,7 +71,7 @@
- leanbuild
+ ottr0.1.2
diff --git a/inst/extdata/01-intro.Rmd b/inst/extdata/01-intro.Rmd
index 6dbc5b9..8f24ffe 100644
--- a/inst/extdata/01-intro.Rmd
+++ b/inst/extdata/01-intro.Rmd
@@ -3,7 +3,7 @@ title: "Course Title"
---
```{r, include = FALSE}
-leanbuild::set_knitr_image_path()
+ottr::set_knitr_image_path()
```
# Introduction
diff --git a/inst/extdata/02-example-chapter.Rmd b/inst/extdata/02-example-chapter.Rmd
index ff2e72a..c32c516 100644
--- a/inst/extdata/02-example-chapter.Rmd
+++ b/inst/extdata/02-example-chapter.Rmd
@@ -7,7 +7,7 @@ title: "Example Chapter"
Every chapter needs to start out with this chunk of code:
```{r, include = FALSE}
-leanbuild::set_knitr_image_path()
+ottr::set_knitr_image_path()
```
### Code examples
@@ -41,7 +41,7 @@ dev.off()
How to include a Google slide.
```{r, fig.align='center', echo = FALSE, fig.alt= "Major point!! example image"}
-leanbuild::include_slide("https://docs.google.com/presentation/d/1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ/edit#slide=id.gcc4fbee202_0_141")
+ottr::include_slide("https://docs.google.com/presentation/d/1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ/edit#slide=id.gcc4fbee202_0_141")
```
But if you have the slide or some other image locally downloaded you can also use html like this:
diff --git a/man/bookdown_to_leanpub.Rd b/man/bookdown_to_leanpub.Rd
index 5f0a11d..552cf8c 100644
--- a/man/bookdown_to_leanpub.Rd
+++ b/man/bookdown_to_leanpub.Rd
@@ -24,7 +24,7 @@ bookdown_to_leanpub(
\item{output_dir}{output directory to put files. It should likely be
relative to path}
-\item{make_book_txt}{Should [leanbuild::bookdown_to_book_txt()] be run
+\item{make_book_txt}{Should [ottr::bookdown_to_book_txt()] be run
to create a `Book.txt` in the output directory?}
\item{quiz_dir}{directory that contains the quiz .md files that should be
diff --git a/man/check_all_questions.Rd b/man/check_all_questions.Rd
index c05e4d3..e1520a6 100644
--- a/man/check_all_questions.Rd
+++ b/man/check_all_questions.Rd
@@ -7,17 +7,17 @@
check_all_questions(quiz_specs, quiz_name = NA, verbose = TRUE)
}
\arguments{
-\item{quiz_specs}{quiz_specs which is output from [leanbuild::parse_quiz].}
+\item{quiz_specs}{quiz_specs which is output from [ottr::parse_quiz].}
\item{quiz_name}{The name of the quiz being checked.}
\item{verbose}{Whether progress messages should be given.}
}
\value{
-A list of the output from [leanbuild::check_question] with messages/warnings regarding each question and each check.
+A list of the output from [ottr::check_question] with messages/warnings regarding each question and each check.
}
\description{
-Takes output from [leanbuild::parse_quiz] and runs checks on each question in a quiz by calling [leanbuild::check_question] for each question.
+Takes output from [ottr::parse_quiz] and runs checks on each question in a quiz by calling [ottr::check_question] for each question.
First splits questions into their own data frame. Returns a list of messages/warnings about each question's set up.
}
\examples{
diff --git a/man/check_question.Rd b/man/check_question.Rd
index 74e93cf..bc9695c 100644
--- a/man/check_question.Rd
+++ b/man/check_question.Rd
@@ -19,7 +19,7 @@ A list of messages/warnings regarding each check for the given question.
\description{
Check quiz question set up to see if it is compliant with Leanpub and Coursera needs.
Based off of [Markua guide](https://leanpub.com/markua/read#leanpub-auto-quizzes-and-exercises).
-Is called by [leanbuild::check_all_questions] and run for each question.
+Is called by [ottr::check_all_questions] and run for each question.
}
\examples{
diff --git a/man/check_quiz_attributes.Rd b/man/check_quiz_attributes.Rd
index 4e8e98e..6821243 100644
--- a/man/check_quiz_attributes.Rd
+++ b/man/check_quiz_attributes.Rd
@@ -7,7 +7,7 @@
check_quiz_attributes(quiz_specs, quiz_name = NULL, verbose = TRUE)
}
\arguments{
-\item{quiz_specs}{The output from [leanbuild::parse_quiz].}
+\item{quiz_specs}{The output from [ottr::parse_quiz].}
\item{quiz_name}{A character string indicating the name of the quiz being checked.}
diff --git a/man/check_quiz_question_attributes.Rd b/man/check_quiz_question_attributes.Rd
index 934ff22..8b38759 100644
--- a/man/check_quiz_question_attributes.Rd
+++ b/man/check_quiz_question_attributes.Rd
@@ -7,13 +7,13 @@
check_quiz_question_attributes(question_df, quiz_name = NULL, verbose = TRUE)
}
\arguments{
-\item{question_df}{a data.frame obtained from [leanbuild::parse_quiz_df] and dplyr::group_split(question).}
+\item{question_df}{a data.frame obtained from [ottr::parse_quiz_df] and dplyr::group_split(question).}
\item{quiz_name}{inherited from parse}
\item{verbose}{print diagnostic messages}
}
\description{
-This is ran automatically by [leanbuild::check_all_questions] for all questions.
+This is ran automatically by [ottr::check_all_questions] for all questions.
It checks that the attributes specified are accepted ones by Leanpub.
}
diff --git a/man/check_quizzes.Rd b/man/check_quizzes.Rd
index bda0d9d..8fff7d6 100644
--- a/man/check_quizzes.Rd
+++ b/man/check_quizzes.Rd
@@ -7,7 +7,7 @@
check_quizzes(quiz_dir = "quizzes", write_report = TRUE, verbose = TRUE)
}
\arguments{
-\item{quiz_dir}{A path to a directory full of quizzes that should all be checked with [leanbuild::check_all_quizzes].}
+\item{quiz_dir}{A path to a directory full of quizzes that should all be checked with [ottr::check_all_quizzes].}
\item{write_report}{TRUE/FALSE save warning report to a CSV file?}
diff --git a/man/example_repo_cleanup.Rd b/man/example_repo_cleanup.Rd
index f0096bc..f9cc301 100644
--- a/man/example_repo_cleanup.Rd
+++ b/man/example_repo_cleanup.Rd
@@ -17,7 +17,7 @@ Clean up example repo files
\examples{
# Run this to get the files we need
-example_files <- leanbuild::example_repo_setup()
+example_files <- ottr::example_repo_setup()
# Run this to delete them
example_repo_cleanup(files_to_remove = basename(example_files))
diff --git a/man/example_repo_setup.Rd b/man/example_repo_setup.Rd
index 1bb3bdf..c9cc03a 100644
--- a/man/example_repo_setup.Rd
+++ b/man/example_repo_setup.Rd
@@ -14,5 +14,5 @@ Set up example repo files
}
\examples{
# Run this to get the files we need
-example_files <- leanbuild::example_repo_setup()
+example_files <- ottr::example_repo_setup()
}
diff --git a/man/remove_yaml_header.Rd b/man/remove_yaml_header.Rd
index fbfee87..5ad4e59 100644
--- a/man/remove_yaml_header.Rd
+++ b/man/remove_yaml_header.Rd
@@ -16,7 +16,7 @@ A character vector of the text without the YAML header
Remove YAML header
}
\examples{
-file <- system.file("extdata/00_template.Rmd", package = "leanbuild")
+file <- system.file("extdata/00_template.Rmd", package = "ottr")
out <- remove_yaml_header(file)
head(out)
}
diff --git a/tests/testthat.R b/tests/testthat.R
index 8787609..ff6b117 100644
--- a/tests/testthat.R
+++ b/tests/testthat.R
@@ -1,4 +1,4 @@
library(testthat)
-library(leanbuild)
+library(ottr)
-test_check("leanbuild")
+test_check("ottr")
diff --git a/tests/testthat/test-gs_download.R b/tests/testthat/test-gs_download.R
index cb88bc2..ac86f07 100644
--- a/tests/testthat/test-gs_download.R
+++ b/tests/testthat/test-gs_download.R
@@ -1,6 +1,6 @@
testthat::test_that("Download a Slide ", {
output_dir = tempdir()
- outfile = leanbuild::include_slide(
+ outfile = ottr::include_slide(
paste0("https://docs.google.com/presentation/d/",
"12DPZgPteQBwgal6kSPP58zhPhjZ7QSPZLe3NkA8M3eo/",
"edit#slide=id.gc87451c247_0_17"),
diff --git a/vignettes/getting-started.Rmd b/vignettes/getting-started.Rmd
index c85d89b..39b674e 100644
--- a/vignettes/getting-started.Rmd
+++ b/vignettes/getting-started.Rmd
@@ -7,16 +7,16 @@ vignette: >
%\VignetteEncoding{UTF-8}
---
-# Intro to leanbuild
+# Intro to ottr
-`leanbuild` converts a [Bookdown repository](https://github.com/jtr13/bookdown-template) into a [Leanpub-ready](https://leanpub.com/) set of files.
+`ottr` converts a [Bookdown repository](https://github.com/jtr13/bookdown-template) into a [Leanpub-ready](https://leanpub.com/) set of files.
The output rendered files from this package can be published using the [Github writing mode on Leanpub](https://leanpub.com/lfm/read#leanpub-auto-switching-writing-modes).
If you aren't familiar with `Bookdown` you may want with [their tutorials](https://bookdown.org/yihui/bookdown/).
-## Installing leanbuild:
+## Installing ottr:
-You can install `leanbuild` from GitHub with:
+You can install `ottr` from GitHub with:
You will need to use the remotes package (and will need to install it if you don't have it).
@@ -24,24 +24,24 @@ You will need to use the remotes package (and will need to install it if you don
if (!("remotes" %in% installed.packages())) {
install.packages("remotes")
}
-if (!("leanbuild" %in% installed.packages())) {
- remotes::install_github("jhudsl/leanbuild")
+if (!("ottr" %in% installed.packages())) {
+ remotes::install_github("jhudsl/ottr")
}
```
## Required files:
-Before you are ready to run `leanbuild`, you will need the following files (which are standard in a `Bookdown` repository):
+Before you are ready to run `ottr`, you will need the following files (which are standard in a `Bookdown` repository):
- a `_bookdown.yml` file which lists the `.Rmd` files that are to be rendered in a `rmd: ` category (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/_bookdown.yml)).
- `.Rmd` files which contain the chapter content (including your `index.Rmd` file which `Bookdown` has).
- an `images` directory that contains any images that are referenced in the chapters.
- `.bib` file(s) to complete any citation renders (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/book.bib)).
_Optionally:_.
-- [a `Book.txt` file](https://leanpub.com/lfm/read#leanpub-auto-booktxt-sampletxt-and-manuscript-files) which lists the order of the chapters/quiz files (this can be autogenerated with `leanbuild`) (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/Book.txt)).
+- [a `Book.txt` file](https://leanpub.com/lfm/read#leanpub-auto-booktxt-sampletxt-and-manuscript-files) which lists the order of the chapters/quiz files (this can be autogenerated with `ottr`) (see [example file](https://github.com/jhudsl/OTTR_Quizzes/blob/main/Book.txt)).
- a directory containing quizzes in the form of `.md` files which have been written using the [Markua formatting specifications](https://leanpub.com/markua/read#leanpub-auto-quizzes-and-exercises) (see [example folder](https://github.com/jhudsl/OTTR_Quizzes/tree/main/quizzes)).
-Here's an example of what the Bookdown file set up (which leanbuild will look for) might be set up like:
+Here's an example of what the Bookdown file set up (which ottr will look for) might be set up like:
```
A_Bookdown_Repo
├── _bookdown.yml
@@ -68,53 +68,53 @@ But for the purposes of this example we will download a zip file of the files we
```{r}
# Run this to get the files we need
-example_files <- leanbuild::example_repo_setup()
+example_files <- ottr::example_repo_setup()
```
Each of your Rmds needs to have a chunk of code with this at the beginning of the file:
-`leanbuild::set_knitr_image_path()`
+`ottr::set_knitr_image_path()`
This will ensure that the images are stored in the correct place and will be rendered correctly both in `Bookdown` and in Leanpub.
-## Running leanbuild
+## Running ottr
-The `leanbuild` package converts your files using this main function (which we won't run just yet).
+The `ottr` package converts your files using this main function (which we won't run just yet).
```
-leanbuild::bookdown_to_leanpub()
+ottr::bookdown_to_leanpub()
```
-By default, `leanbuild` will re-run a `bookdown::render_book("index.Rmd")` rendering of your chapters first before converting the files to the Leanpub ready format.
+By default, `ottr` will re-run a `bookdown::render_book("index.Rmd")` rendering of your chapters first before converting the files to the Leanpub ready format.
It will only process the `Rmd` files that are listed in the `_bookdown.yml` file.
-However, if you wish to skip this step, you can set `render = FALSE` when running the `leanbuild::bookdown_to_leanpub()` function.
+However, if you wish to skip this step, you can set `render = FALSE` when running the `ottr::bookdown_to_leanpub()` function.
## About the output files
Leanpub's Github writing mode will look for a directory called `manuscript` to publish from.
-You should not edit the files in `manuscript/` by hand since a re-run of `leanbuild` will cause your changes to be overwritten.
+You should not edit the files in `manuscript/` by hand since a re-run of `ottr` will cause your changes to be overwritten.
## About the Book.txt file:
Leanpub requires a [`Book.txt`](https://leanpub.com/lfm/read#leanpub-auto-booktxt-sampletxt-and-manuscript-files) file to know what order the chapters/quizzes should be published.
-By default, your `Book.txt` file will _not_ be autogenerated but `leanbuild` will look in your given directory for an existing `Book.txt` file which it will copy over to the output directory.
+By default, your `Book.txt` file will _not_ be autogenerated but `ottr` will look in your given directory for an existing `Book.txt` file which it will copy over to the output directory.
-You can create a `Book.txt` file manually, or if your quizzes and chapters are numbered, `leanbuild` can create the `Book.txt` file based on the numbers going from low to high and quizzes following chapters of the same number.
+You can create a `Book.txt` file manually, or if your quizzes and chapters are numbered, `ottr` can create the `Book.txt` file based on the numbers going from low to high and quizzes following chapters of the same number.
(e.g. `quiz_03.md` will be placed after `03-some_chapter_file.Rmd`).
-To have `leanbuild` attempt to autogenerate this file with the main function you can set `make_book_txt` to `TRUE`.
-If no `Book.txt` file is found and `make_book_txt` is set to `FALSE` (this is the default setting), `leanbuild` will fail.
+To have `ottr` attempt to autogenerate this file with the main function you can set `make_book_txt` to `TRUE`.
+If no `Book.txt` file is found and `make_book_txt` is set to `FALSE` (this is the default setting), `ottr` will fail.
So to run the main function and also have it make a `Book.txt` file for us, we can run the following: For now we don't have quizzes, so we will set `quiz_dir = NULL`.
```{r}
-leanbuild::bookdown_to_leanpub(make_book_txt = TRUE, quiz_dir = NULL)
+ottr::bookdown_to_leanpub(make_book_txt = TRUE, quiz_dir = NULL)
```
Alternatively, we could run `bookdown_to_book_txt()` function on its own:
```{r}
-leanbuild::bookdown_to_book_txt()
+ottr::bookdown_to_book_txt()
```
Also note that any `index.Rmd` will always be placed first and any `about.Rmd` file will be placed last.
@@ -137,11 +137,11 @@ if(!dir.exists(quiz_dir)) {
}
```
-By default, leanbuild will look for a folder called `quizzes/` to find your quiz `.md` files.
+By default, ottr will look for a folder called `quizzes/` to find your quiz `.md` files.
If your quizzes are located somewhere else, you will need to use the `quiz_dir` argument to specify that:
```
-leanbuild::bookdown_to_leanpub(quiz_dir = "some_other_directory")
+ottr::bookdown_to_leanpub(quiz_dir = "some_other_directory")
```
Leanpub can be very particular about the formatting of the quizzes, so there are funtions to help you check the formatting of your quiz.
@@ -149,7 +149,7 @@ Leanpub can be very particular about the formatting of the quizzes, so there are
In the main argument, you can set `run_quiz_checks` to `TRUE` (the default is `FALSE`).
```
-leanbuild::bookdown_to_leanpub(run_quiz_checks = TRUE)
+ottr::bookdown_to_leanpub(run_quiz_checks = TRUE)
```
But the quiz checks can also be run separately using the `check_quizzes()` function.
@@ -159,7 +159,7 @@ We can take a look at how `check_quizzes()` runs using a quiz examples: one that
```{r}
# Set up an good example quiz
-good_quiz_path <- leanbuild::good_quiz_path()
+good_quiz_path <- ottr::good_quiz_path()
dest_quiz_path <- file.path("quizzes", basename(good_quiz_path))
@@ -172,7 +172,7 @@ if (!file.exists(dest_quiz_path)){
Run `check_quizzes()` to check all quizzes in the directory.
```{r}
-quiz_checklist <- leanbuild::check_quizzes(quiz_dir = "quizzes")
+quiz_checklist <- ottr::check_quizzes(quiz_dir = "quizzes")
```
We can take a look at what a typical quiz format looks like:
@@ -186,7 +186,7 @@ Now let's add in a bad quiz and see how the report changes.
```{r}
# Set up an good example quiz
-bad_quiz_path <- leanbuild::bad_quiz_path()
+bad_quiz_path <- ottr::bad_quiz_path()
dest_quiz_path <- file.path("quizzes", basename(bad_quiz_path))
@@ -199,7 +199,7 @@ if (!file.exists(dest_quiz_path)){
Let's re-run `check_quizzes()`.
```{r}
-quiz_checklist <- leanbuild::check_quizzes(quiz_dir = "quizzes")
+quiz_checklist <- ottr::check_quizzes(quiz_dir = "quizzes")
```
We have some warning messages about various items and the errors have been saved to `'question_error_report.tsv'` which we can read in and check out.
@@ -216,14 +216,14 @@ Then you can re-run `check_quizzes()` and see if the warning is resolved.
## Adding footer text:
-If there is text you would like added to the end of each chapter (like a link to a feedback survey for example), you can supply a character string to the `footer_text`argument in the main `leanbuild::bookdown_to_leanpub()` function.
+If there is text you would like added to the end of each chapter (like a link to a feedback survey for example), you can supply a character string to the `footer_text`argument in the main `ottr::bookdown_to_leanpub()` function.
```{r}
# Set up a character string
survey_link <- "Please provide any feedback you have in [this survey](www.some_link.org)"
# Supply the footer text in the main function
-leanbuild::bookdown_to_leanpub(make_book_txt = TRUE,
+ottr::bookdown_to_leanpub(make_book_txt = TRUE,
footer_text = survey_link)
```
@@ -232,7 +232,7 @@ leanbuild::bookdown_to_leanpub(make_book_txt = TRUE,
If you don't want those example files hanging around, we can run this function to cleanup the example files.
```{r, echo = FALSE, results = FALSE}
-leanbuild::example_repo_cleanup(files_to_remove = basename(example_files), verbose = FALSE)
+ottr::example_repo_cleanup(files_to_remove = basename(example_files), verbose = FALSE)
```
Lastly, we will print out the session info.