Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prep for leanbuild -> ottr rename #428

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/automatic-issues/images-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ See [Setting Up Images and Graphics](https://github.com/jhudsl/OTTR_Template/wik
- [ ] The color palette choices of the slide are contrasted in a way that is friendly to those with color vision deficiencies.
You can check this using [Color Oracle](https://colororacle.org/).

- [ ] Every image is [inserted into the text](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#adding-images-and-graphics-in-text) using one of these options: `leanbuild::include_slide()`, `knitr::include_image()`, or this format: `<img src="blah.png" alt="SOMETHING">`.
- [ ] Every image is [inserted into the text](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#adding-images-and-graphics-in-text) using one of these options: `ottr::include_slide()`, `knitr::include_image()`, or this format: `<img src="blah.png" alt="SOMETHING">`.

- [ ] Every image has [alternative text added to it](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#adding-images-and-graphics-in-text).

- [ ] The beginning of each Rmd contains this chunk so the images are saved in the correct spot:

`````
```{r, include = FALSE}
leanbuild::set_knitr_image_path()
ottr::set_knitr_image_path()
```
`````
2 changes: 1 addition & 1 deletion .github/workflows/check-quizzes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Run quiz check
id: quiz_check_run
run: |
Rscript -e "leanbuild::check_quizzes(quiz_dir = 'quizzes', write_report = TRUE, verbose = TRUE)"
Rscript -e "ottr::check_quizzes(quiz_dir = 'quizzes', write_report = TRUE, verbose = TRUE)"
results=0
if -f "question_error_report.tsv"; then
results=$(wc -l < question_error_report.tsv >/dev/null)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/render-bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
docker run \
--mount type=bind,target=/home/rstudio,source=$PWD \
jhudsl/course_template \
Rscript -e "leanbuild::render_coursera()"
Rscript -e "ottr::render_coursera()"

##### End of Coursera rendering section ########################################

Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/render-leanpub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
render-main:
runs-on: ubuntu-latest
container:
image: jhudsl/course_template
image: jhudsl/ottr

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -34,12 +35,19 @@ jobs:
token: ${{ secrets.GH_PAT }}

# Run leanpub rendering
- name: Run leanbuild::bookdown_to_leanpub
run: Rscript -e "leanbuild::bookdown_to_leanpub(make_book_txt = TRUE)"
- name: Run the screenshot creation
run: |
chapt_urls=$(Rscript --vanilla scripts/get_chapter_urls.R \
--git_pat ${{ secrets.GH_PAT }} \
--repo $GITHUB_REPOSITORY)

# Run leanpub rendering
- name: Run ottr::bookdown_to_leanpub
run: Rscript -e "ottr::bookdown_to_leanpub(make_book_txt = TRUE)"

# Convert quizzes to Coursera format
- name: Convert quizzes to coursera
run: Rscript -e "leanbuild::render_coursera(convert_quizzes = TRUE)"
run: Rscript -e "ottr::render_coursera(convert_quizzes = TRUE)"

# Commit the rendered leanpub files
- name: Commit rendered leanpub files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/render-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# Run Coursera version
- name: Run Coursera version of render
id: coursera
run: Rscript -e "leanbuild::render_coursera()"
run: Rscript -e "ottr::render_coursera()"

##### End of Coursera rendering section ########################################

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/transfer-rendered-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ jobs:
signoff: false
branch: auto_copy_rendered_files
delete-branch: true
title: 'GHA: Automated transfer of leanbuild-needed files from Bookdown repository'
title: 'GHA: Automated transfer of ottr-needed files from Bookdown repository'
body: |
### Description:
This PR was initiated by transfer-rendered.yml in the Bookdown repository.
It copies over the leanbuild-needed files from Bookdown repository:
It copies over the ottr-needed files from Bookdown repository:
- Rmds listed in the _bookdoown.yml
- _bookdown.yml
- docs/*
Expand Down
2 changes: 1 addition & 1 deletion 01-intro.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

```{r, include = FALSE}
leanbuild::set_knitr_image_path()
ottr::set_knitr_image_path()
```

# Introduction
Expand Down
6 changes: 3 additions & 3 deletions 02-chapter_of_course.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Every chapter needs to start out with this chunk of code:

```{r, include = FALSE}
leanbuild::set_knitr_image_path()
ottr::set_knitr_image_path()
```

## Learning Objectives
Expand Down Expand Up @@ -63,10 +63,10 @@ dev.off()

### Image example

How to include a Google slide. It's simplest to use the `leanbuild` package:
How to include a Google slide. It's simplest to use the `ottr` package:

```{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:
Expand Down
4 changes: 2 additions & 2 deletions About.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ These credits are based on our [course contributors table guidelines](https://gi
|Template Publishing Engineers|[Candace Savonen], [Carrie Wright]|
|Publishing Maintenance Engineer|[Candace Savonen]|
|Technical Publishing Stylists|[Carrie Wright], [Candace Savonen]|
|Package Developers ([Leanbuild])|[John Muschelli], [Candace Savonen], [Carrie Wright]|
|Package Developers ([ottr])|[John Muschelli], [Candace Savonen], [Carrie Wright]|
|**Art and Design**||
|Illustrator(s)| Created graphics for the course|
|Figure Artist(s)| Created figures/plots for course|
Expand All @@ -52,7 +52,7 @@ devtools::session_info()

<!-- Links -->

[Leanbuild]: https://github.com/jhudsl/leanbuild
[ottr]: https://github.com/jhudsl/ottr

<!-- Fill out this table using these instructions: https://github.com/jhudsl/OTTR_Template/wiki/How-to-give-credits

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _This template and guide helps you_:
- [Bookdown](https://bookdown.org/)
- [Coursera](https://www.coursera.org/)
- Have [Github action robots](https://github.com/jhudsl/OTTR_Template/wiki/How-to-set-up-and-customize-GitHub-actions-robots) do your repetitive tasks like spell check and re-rendering.
- Use [automagic conversion](https://github.com/jhudsl/leanbuild) to ease the lift of prepping the material for different platforms' formats.
- Use [automagic conversion](https://github.com/jhudsl/ottr) to ease the lift of prepping the material for different platforms' formats.
- Use [our Docker image](https://hub.docker.com/repository/docker/jhudsl/course_template) for consistency across authors as well as to help you [avoid dependency hell](https://en.wikipedia.org/wiki/Dependency_hell).

<img src="https://docs.google.com/presentation/d/18k_QN7l6zqZQXoiRfKWzcYFXNXJJEo6j4daYGoc3UcU/export/png?id=18k_QN7l6zqZQXoiRfKWzcYFXNXJJEo6j4daYGoc3UcU&pageid=gf4fcf6569c_2_29" width="500"/>
Expand Down
2 changes: 1 addition & 1 deletion docker/github_package_list.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ yihui/xfun 74c2a6605d8f0fb19314da542baeead6dc8697d9
yihui/knitr a1052d12e0ff8f4ead365b4c85ef5835faa1c492
r-lib/rlang f0c9be5c5806b4e4b120b7516f286fef3c66bda5
jhudsl/didactr cde4598c10f2b5e2e31b47fe94ca1b02db420e10
jhudsl/leanbuild HEAD
jhudsl/ottr HEAD
tidyverse/rvest 4fe39fb5089512d77b6a9cc026e5c895258ff6ce
R-lib/testthat e99155af85261e065192feb946dcfa6679cffae4
rstudio/bookdown 88bc4ead8562ea281838041c795b38fc4a6a7165
Expand Down
2 changes: 1 addition & 1 deletion docker/install_github.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ option_list <- list(
default = "github_package_list.tsv" ,
help = "Path to a TSV with a list of packages to be installed through Github,
where file where the first column is the github package name e.g.
jhudsl/leanbuild and the second column is the commit ID to be installed
jhudsl/ottr and the second column is the commit ID to be installed
(to be supplied to the ref argument).
",
metavar = "character"
Expand Down
4 changes: 2 additions & 2 deletions docs/02-chapter_of_course.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ dev.off()

### Image example

How to include a Google slide. It's simplest to use the `leanbuild` package:
How to include a Google slide. It's simplest to use the `ottr` package:

![](resources/images/02-chapter_of_course_files/figure-docx//1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ_gcc4fbee202_0_141.png)

Expand Down Expand Up @@ -226,7 +226,7 @@ devtools::session_info()
## htmltools 0.5.0 2020-06-16 [1] RSPM (R 4.0.1)
## httr 1.4.2 2020-07-20 [1] RSPM (R 4.0.3)
## knitr 1.33 2022-01-26 [1] Github (yihui/knitr@a1052d1)
## leanbuild 0.1.2 2022-01-26 [1] Github (jhudsl/leanbuild@1d387e1)
## ottr 0.1.2 2022-01-26 [1] Github (jhudsl/ottr@1d387e1)
## lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.2)
## magrittr * 1.5 2014-11-22 [1] RSPM (R 4.0.0)
## memoise 1.1.0 2017-04-21 [1] RSPM (R 4.0.0)
Expand Down
4 changes: 2 additions & 2 deletions docs/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ These credits are based on our [course contributors table guidelines](https://gi
|Template Publishing Engineers|[Candace Savonen], [Carrie Wright]|
|Publishing Maintenance Engineer|[Candace Savonen]|
|Technical Publishing Stylists|[Carrie Wright], [Candace Savonen]|
|Package Developers ([Leanbuild])|[John Muschelli], [Candace Savonen], [Carrie Wright]|
|Package Developers ([ottr])|[John Muschelli], [Candace Savonen], [Carrie Wright]|
|**Art and Design**||
|Illustrator(s)| Created graphics for the course|
|Figure Artist(s)| Created figures/plots for course|
Expand Down Expand Up @@ -107,7 +107,7 @@ These credits are based on our [course contributors table guidelines](https://gi

<!-- Links -->

[Leanbuild]: https://github.com/jhudsl/leanbuild
[ottr]: https://github.com/jhudsl/ottr

<!-- Fill out this table using these instructions: https://github.com/jhudsl/OTTR_Template/wiki/How-to-give-credits

Expand Down
2 changes: 1 addition & 1 deletion docs/about-the-authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ <h1>About the Authors</h1>
<td><a href="https://carriewright11.github.io/">Carrie Wright</a>, <a href="https://www.cansavvy.com/">Candace Savonen</a></td>
</tr>
<tr class="even">
<td>Package Developers (<a href="https://github.com/jhudsl/leanbuild">Leanbuild</a>)</td>
<td>Package Developers (<a href="https://github.com/jhudsl/ottr">ottr</a>)</td>
<td><a href="https://johnmuschelli.com/">John Muschelli</a>, <a href="https://www.cansavvy.com/">Candace Savonen</a>, <a href="https://carriewright11.github.io/">Carrie Wright</a></td>
</tr>
<tr class="odd">
Expand Down
4 changes: 2 additions & 2 deletions docs/coursera/02-chapter_of_course.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ dev.off()

### Image example

How to include a Google slide. It's simplest to use the `leanbuild` package:
How to include a Google slide. It's simplest to use the `ottr` package:

<img src="resources/images/02-chapter_of_course_files/figure-html//1YmwKdIy9BeQ3EShgZhvtb3MgR8P6iDX4DfFD65W_gdQ_gcc4fbee202_0_141.png" title="Major point!! example image" alt="Major point!! example image" style="display: block; margin: auto;" />

Expand Down Expand Up @@ -222,7 +222,7 @@ devtools::session_info()
## httr 1.4.2 2020-07-20 [1] RSPM (R 4.0.3)
## jquerylib 0.1.1 2020-04-30 [1] RSPM (R 4.0.0)
## knitr 1.33 2022-01-26 [1] Github (yihui/knitr@a1052d1)
## leanbuild 0.1.2 2022-01-26 [1] Github (jhudsl/leanbuild@1d387e1)
## ottr 0.1.2 2022-01-26 [1] Github (jhudsl/ottr@1d387e1)
## lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.2)
## magrittr * 1.5 2014-11-22 [1] RSPM (R 4.0.0)
## memoise 1.1.0 2017-04-21 [1] RSPM (R 4.0.0)
Expand Down
6 changes: 3 additions & 3 deletions docs/coursera/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ These credits are based on our [course contributors table guidelines](https://gi
|Template Publishing Engineers|[Candace Savonen], [Carrie Wright]|
|Publishing Maintenance Engineer|[Candace Savonen]|
|Technical Publishing Stylists|[Carrie Wright], [Candace Savonen]|
|Package Developers ([Leanbuild])|[John Muschelli], [Candace Savonen], [Carrie Wright]|
|Package Developers ([ottr])|[John Muschelli], [Candace Savonen], [Carrie Wright]|
|**Art and Design**||
|Illustrator(s)| Created graphics for the course|
|Figure Artist(s)| Created figures/plots for course|
Expand Down Expand Up @@ -73,7 +73,7 @@ These credits are based on our [course contributors table guidelines](https://gi
## htmltools 0.5.0 2020-06-16 [1] RSPM (R 4.0.1)
## jquerylib 0.1.1 2020-04-30 [1] RSPM (R 4.0.0)
## knitr 1.33 2022-01-26 [1] Github (yihui/knitr@a1052d1)
## leanbuild 0.1.2 2022-01-26 [1] Github (jhudsl/leanbuild@1d387e1)
## ottr 0.1.2 2022-01-26 [1] Github (jhudsl/ottr@1d387e1)
## lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.2)
## magrittr 1.5 2014-11-22 [1] RSPM (R 4.0.0)
## memoise 1.1.0 2017-04-21 [1] RSPM (R 4.0.0)
Expand Down Expand Up @@ -115,7 +115,7 @@ These credits are based on our [course contributors table guidelines](https://gi

<!-- Links -->

[Leanbuild]: https://github.com/jhudsl/leanbuild
[ottr]: https://github.com/jhudsl/ottr

<!-- Fill out this table using these instructions: https://github.com/jhudsl/OTTR_Template/wiki/How-to-give-credits

Expand Down
4 changes: 2 additions & 2 deletions docs/coursera/about-the-authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ <h1>About the Authors</h1>
<td><a href="https://carriewright11.github.io/">Carrie Wright</a>, <a href="https://www.cansavvy.com/">Candace Savonen</a></td>
</tr>
<tr class="even">
<td>Package Developers (<a href="https://github.com/jhudsl/leanbuild">Leanbuild</a>)</td>
<td>Package Developers (<a href="https://github.com/jhudsl/ottr">ottr</a>)</td>
<td><a href="https://johnmuschelli.com/">John Muschelli</a>, <a href="https://www.cansavvy.com/">Candace Savonen</a>, <a href="https://carriewright11.github.io/">Carrie Wright</a></td>
</tr>
<tr class="odd">
Expand Down Expand Up @@ -382,7 +382,7 @@ <h1>About the Authors</h1>
## htmltools 0.5.0 2020-06-16 [1] RSPM (R 4.0.1)
## jquerylib 0.1.1 2020-04-30 [1] RSPM (R 4.0.0)
## knitr 1.33 2022-01-26 [1] Github (yihui/knitr@a1052d1)
## leanbuild 0.1.2 2022-01-26 [1] Github (jhudsl/leanbuild@1d387e1)
## ottr 0.1.2 2022-01-26 [1] Github (jhudsl/ottr@1d387e1)
## lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.0.2)
## magrittr 1.5 2014-11-22 [1] RSPM (R 4.0.0)
## memoise 1.1.0 2017-04-21 [1] RSPM (R 4.0.0)
Expand Down
Loading