Skip to contents

A platform-agnostic method of deploying a lesson website and cached content. This function takes advantage of git worktrees to render and push content to orphan branches, which can be used to host the lesson website. This function assumes that you are in a git clone from a remote and have write access to that remote.

Usage

ci_deploy(
  path = ".",
  md_branch = "md-outputs",
  site_branch = "gh-pages",
  remote = "origin",
  reset = FALSE
)

Arguments

path

path to the lesson

md_branch

the branch name that contains the markdown outputs

site_branch

the branch name that contains the full HTML site

remote

the name of the git remote to which you should deploy.

reset

if TRUE, the markdown cache is cleared before rebuilding, this defaults to FALSE meaning the markdown cache will be provisioned and used.

Value

Nothing, invisibly. This is used for it's side-effect

Details

ci_deploy() does the same thing as build_lesson(), except instead of storing the outputs under the site/ folder, it pushes the outputs to remote orphan branches (determined by the md_branch and site_branch arguments). These branches are used as the cache and the website, respectively. If these branches do not exist, they will be created.

Requirements

This function can only run in a non-interactive fashion. If you try to run it interactively, you will get an error message. It assumes that the following are true:

  • it is running in a script or automated workflow

  • it is running in a clone of a git repository

  • the remote exists and is writable

Unexpected consequences can arise from violating these assumptions.

Workflow

This function has a similar two-step workflow as build_lesson(), with a few extra steps to ensure that the git branches are set up correctly. Below are the steps with elements common to build_lesson() annotated with *

  1. check that a git user and email is registered

  2. * Validate the lesson and generate global variables with validate_lesson()

  3. provision, build, and deploy markdown branch with ci_build_markdown() i. provision markdown branch with git_worktree_setup() ii. * build the markdown source documents with build_markdown() iii. commit and push the git worktree to the remote branch with github_worktree_commit()

  4. provision, build, and deploy site branch with ci_build_site() i. provision site branch with git_worktree_setup() ii. * build the site HTML documents with build_site() iii. commit and push the git worktree to the remote branch with github_worktree_commit() iv. remove the git worktree with github_worktree_remove()

  5. remove markdown git worktree with github_worktree_remove()

Note

this function is not for interactive use. It requires git to be installed on your machine and will destroy anything you have in the site/ folder. For R-based lessons it will rebuild all components if the lockfile has changed.

Examples

# For this example, we are setting up a temporary repository with a local
# remote called `sandpaper-local`. This demonstrates how `ci_deploy()`
# modifies the remote, but there are setup and teardown steps to run.
# The actual example is highlighted below under the DEPLOY comment.

# SETUP -------------------------------------------------------------------
snd <- asNamespace("sandpaper")
tik <- Sys.time()
cli::cli_h1("Set up")
#> 
#> ── Set up ──────────────────────────────────────────────────────────────
cli::cli_h2("Create Lesson")
#> 
#> ── Create Lesson ──
#> 
restore_fixture <- snd$create_test_lesson()
#> → Bootstrapping example lesson
#> → Searching for and installing available dependencies
#> * Discovering package dependencies ... Done!
#> * Copying packages into the library ... Done!
#> → Recording changes in lockfile
#> The version of R recorded in the lockfile will be updated:
#> - R           [*] -> [4.2.2]
#> 
#> The following package(s) will be updated in the lockfile:
#> 
#> # RSPM ===============================
#> - R6          [* -> 2.5.1]
#> - base64enc   [* -> 0.1-3]
#> - bslib       [* -> 0.4.2]
#> - cachem      [* -> 1.0.6]
#> - cli         [* -> 3.6.0]
#> - digest      [* -> 0.6.31]
#> - ellipsis    [* -> 0.3.2]
#> - evaluate    [* -> 0.20]
#> - fastmap     [* -> 1.1.0]
#> - fs          [* -> 1.6.0]
#> - glue        [* -> 1.6.2]
#> - highr       [* -> 0.10]
#> - htmltools   [* -> 0.5.4]
#> - jquerylib   [* -> 0.1.4]
#> - jsonlite    [* -> 1.8.4]
#> - knitr       [* -> 1.42]
#> - lifecycle   [* -> 1.0.3]
#> - magrittr    [* -> 2.0.3]
#> - memoise     [* -> 2.0.1]
#> - mime        [* -> 0.12]
#> - rappdirs    [* -> 0.3.3]
#> - renv        [* -> 0.16.0]
#> - rlang       [* -> 1.0.6]
#> - rmarkdown   [* -> 2.20]
#> - sass        [* -> 0.4.5]
#> - stringi     [* -> 1.7.12]
#> - stringr     [* -> 1.5.0]
#> - tinytex     [* -> 0.43]
#> - vctrs       [* -> 0.5.2]
#> - xfun        [* -> 0.36]
#> - yaml        [* -> 2.3.7]
#> 
#> * Lockfile written to '/tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/renv/profiles/lesson-requirements/renv.lock'.
res <- getOption("sandpaper.test_fixture")
cli::cli_h2("Create Remote")
#> 
#> ── Create Remote ──
#> 
rmt <- fs::file_temp(pattern = "REMOTE-")
snd$setup_local_remote(repo = res, remote = rmt, verbose = FALSE)
tok <- Sys.time()
cli::cli_alert_info("Elapsed time: {round(tok - tik, 2)} seconds")
#>  Elapsed time: 3.07 seconds

# reporting -----
# The repository should only have one branch and the remote should be in
# sync with the local.
cli::cli_h2("Local status")
#> 
#> ── Local status ──
#> 
gert::git_branch_list(repo = res)[c('name', 'commit', 'updated')]
#> # A tibble: 2 × 3
#>   name                 commit                        updated            
#>   <chr>                <chr>                         <dttm>             
#> 1 main                 8af9e582b193de36ecdeca387d0f… 2023-01-26 18:04:21
#> 2 sandpaper-local/main 8af9e582b193de36ecdeca387d0f… 2023-01-26 18:04:21
cli::cli_h2("First episode status")
#> ── First episode status ──
#> 
gert::git_stat_files("episodes/introduction.Rmd", repo = res)
#> # A tibble: 1 × 5
#>   file             created             modified            commits head 
#> * <chr>            <dttm>              <dttm>                <int> <chr>
#> 1 episodes/introd… 2023-01-26 18:04:21 2023-01-26 18:04:21       1 8af9…
gert::git_stat_files("episodes/introduction.Rmd", repo = rmt)
#> # A tibble: 1 × 5
#>   file             created             modified            commits head 
#> * <chr>            <dttm>              <dttm>                <int> <chr>
#> 1 episodes/introd… 2023-01-26 18:04:21 2023-01-26 18:04:21       1 8af9…

# DEPLOY ------------------------------------------------------------------
tik <- Sys.time()
cli::cli_h1("deploy to remote")
#> ── deploy to remote ────────────────────────────────────────────────────
sandpaper:::ci_deploy(path = res, remote = "sandpaper-local")
#> ── Validating Fenced Divs ──────────────────────────────────────────────
#> ── Validating Internal Links and Images ────────────────────────────────
#> ::group::Create New Branch
#> Running git checkout --orphan md-outputs
#> Switched to a new branch 'md-outputs'
#> Running git rm -rf --quiet .
#> Running git commit --allow-empty -m 'Initializing md-outputs branch'
#> [md-outputs (root-commit) d6c4e74] Initializing md-outputs branch
#> Running git push sandpaper-local 'HEAD:md-outputs'
#> To /tmp/RtmpsPBux1/REMOTE-1a885a120d2
#>  * [new branch]      HEAD -> md-outputs
#> Running git checkout main
#> Your branch is up to date with 'sandpaper-local/main'.
#> Switched to branch 'main'
#> ::endgroup::
#> ::group::Fetch sandpaper-local/md-outputs
#> Running git remote set-branches sandpaper-local md-outputs
#> Running git fetch sandpaper-local md-outputs
#> From /tmp/RtmpsPBux1/REMOTE-1a885a120d2
#>  * branch            md-outputs -> FETCH_HEAD
#> Running git remote set-branches sandpaper-local '*'
#> ::endgroup::
#> ::group::Add worktree for sandpaper-local/md-outputs in site/built
#> Running git worktree add --track -B md-outputs \
#>   /tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/site/built \
#>   sandpaper-local/md-outputs
#> Preparing worktree (resetting branch 'md-outputs'; was at d6c4e74)
#> branch 'md-outputs' set up to track 'sandpaper-local/md-outputs'.
#> HEAD is now at d6c4e74 Initializing md-outputs branch
#> ::endgroup::
#> ::group::Build Markdown Sources
#>  Consent to use package cache provided
#> → Searching for and installing available dependencies
#> Finding R package dependencies ... Done!
#> → Restoring any dependency versions
#> * The library is already synchronized with the lockfile.
#> → Recording changes in lockfile
#> * Lockfile written to '/tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/renv/profiles/lesson-requirements/renv.lock'.
#>  Using package cache in /home/runner/.cache/R/renv
#> 
#> 
#> processing file: /tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/episodes/introduction.Rmd
#> 
  |                                                                  
  |                                                            |   0%
  |                                                                  
  |....................                                        |  33%          
  |                                                                  
  |........................................                    |  67% (pyramid)
  |                                                                  
  |............................................................| 100%          
                                                                                                    
#> output file: /tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/site/built/introduction.md
#> 
#> ::endgroup::
#> ::group::Commit Markdown Sources
#> Running git commit --allow-empty -m \
#>   'markdown source builds
#> 
#> Auto-generated via {sandpaper}
#> Source  : 8af9e582b193de36ecdeca387d0f0bd9318caaec
#> Branch  : main
#> Author  : Jerry Johnson <jerry@gmail.com>
#> Time    : 2023-01-26 18:04:21 +0000
#> Message : Initial commit [via {sandpaper}]
#> '
#> [md-outputs 25a9c1c] markdown source builds
#>  12 files changed, 903 insertions(+)
#>  create mode 100644 CODE_OF_CONDUCT.md
#>  create mode 100644 LICENSE.md
#>  create mode 100644 config.yaml
#>  create mode 100644 fig/introduction-rendered-pyramid-1.png
#>  create mode 100644 index.md
#>  create mode 100644 instructor-notes.md
#>  create mode 100644 introduction.md
#>  create mode 100644 learner-profiles.md
#>  create mode 100644 links.md
#>  create mode 100644 md5sum.txt
#>  create mode 100644 renv.lock
#>  create mode 100644 setup.md
#> Running git remote -v
#> sandpaper-local	/tmp/RtmpsPBux1/REMOTE-1a885a120d2 (fetch)
#> sandpaper-local	/tmp/RtmpsPBux1/REMOTE-1a885a120d2 (push)
#> Running git push --force sandpaper-local 'HEAD:md-outputs'
#> To /tmp/RtmpsPBux1/REMOTE-1a885a120d2
#>    d6c4e74..25a9c1c  HEAD -> md-outputs
#> ::endgroup::
#> ::group::Create New Branch
#> Running git checkout --orphan gh-pages
#> Switched to a new branch 'gh-pages'
#> Running git rm -rf --quiet .
#> Running git commit --allow-empty -m 'Initializing gh-pages branch'
#> [gh-pages (root-commit) 0e06c6a] Initializing gh-pages branch
#> Running git push sandpaper-local 'HEAD:gh-pages'
#> To /tmp/RtmpsPBux1/REMOTE-1a885a120d2
#>  * [new branch]      HEAD -> gh-pages
#> Running git checkout main
#> Your branch is up to date with 'sandpaper-local/main'.
#> Switched to branch 'main'
#> ::endgroup::
#> ::group::Fetch sandpaper-local/gh-pages
#> Running git remote set-branches sandpaper-local gh-pages
#> Running git fetch sandpaper-local gh-pages
#> From /tmp/RtmpsPBux1/REMOTE-1a885a120d2
#>  * branch            gh-pages   -> FETCH_HEAD
#> Running git remote set-branches sandpaper-local '*'
#> ::endgroup::
#> ::group::Add worktree for sandpaper-local/gh-pages in site/docs
#> Running git worktree add --track -B gh-pages \
#>   /tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/site/docs \
#>   sandpaper-local/gh-pages
#> Preparing worktree (resetting branch 'gh-pages'; was at 0e06c6a)
#> branch 'gh-pages' set up to track 'sandpaper-local/gh-pages'.
#> HEAD is now at 0e06c6a Initializing gh-pages branch
#> ::endgroup::
#> ::group::Build Lesson Website
#>  pandoc found
#>   version : 2.19.2
#>   path    : /usr/bin
#> -- Initialising site ---------------------------------------------------
#> Copying '../../../../../home/runner/work/_temp/Library/pkgdown/BS3/assets/bootstrap-toc.css' to 'bootstrap-toc.css'
#> Copying '../../../../../home/runner/work/_temp/Library/pkgdown/BS3/assets/bootstrap-toc.js' to 'bootstrap-toc.js'
#> Copying '../../../../../home/runner/work/_temp/Library/pkgdown/BS3/assets/docsearch.css' to 'docsearch.css'
#> Copying '../../../../../home/runner/work/_temp/Library/pkgdown/BS3/assets/docsearch.js' to 'docsearch.js'
#> Copying '../../../../../home/runner/work/_temp/Library/pkgdown/BS3/assets/link.svg' to 'link.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/pkgdown/BS3/assets/pkgdown.css' to 'pkgdown.css'
#> Copying '../../../../../home/runner/work/_temp/Library/pkgdown/BS3/assets/pkgdown.js' to 'pkgdown.js'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/android-chrome-192x192.png' to 'android-chrome-192x192.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/android-chrome-512x512.png' to 'android-chrome-512x512.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/apple-touch-icon.png' to 'apple-touch-icon.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/Mulish-Bold.ttf' to 'assets/fonts/Mulish-Bold.ttf'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/Mulish-Bold.woff' to 'assets/fonts/Mulish-Bold.woff'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/Mulish-ExtraBold.ttf' to 'assets/fonts/Mulish-ExtraBold.ttf'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/mulish-v5-latin-regular.eot' to 'assets/fonts/mulish-v5-latin-regular.eot'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/mulish-v5-latin-regular.svg' to 'assets/fonts/mulish-v5-latin-regular.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/mulish-v5-latin-regular.ttf' to 'assets/fonts/mulish-v5-latin-regular.ttf'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/mulish-v5-latin-regular.woff' to 'assets/fonts/mulish-v5-latin-regular.woff'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/mulish-v5-latin-regular.woff2' to 'assets/fonts/mulish-v5-latin-regular.woff2'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/mulish-variablefont_wght.woff' to 'assets/fonts/mulish-variablefont_wght.woff'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/fonts/mulish-variablefont_wght.woff2' to 'assets/fonts/mulish-variablefont_wght.woff2'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/carpentries-logo-sm.svg' to 'assets/images/carpentries-logo-sm.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/carpentries-logo.svg' to 'assets/images/carpentries-logo.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/data-logo-sm.svg' to 'assets/images/data-logo-sm.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/data-logo.svg' to 'assets/images/data-logo.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/dropdown-arrow.svg' to 'assets/images/dropdown-arrow.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/incubator-logo-sm.svg' to 'assets/images/incubator-logo-sm.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/incubator-logo.svg' to 'assets/images/incubator-logo.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/lab-logo-sm.svg' to 'assets/images/lab-logo-sm.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/lab-logo.svg' to 'assets/images/lab-logo.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/library-logo-sm.svg' to 'assets/images/library-logo-sm.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/library-logo.svg' to 'assets/images/library-logo.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/minus.svg' to 'assets/images/minus.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/plus.svg' to 'assets/images/plus.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/software-logo-sm.svg' to 'assets/images/software-logo-sm.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/images/software-logo.svg' to 'assets/images/software-logo.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/scripts.js' to 'assets/scripts.js'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/styles.css' to 'assets/styles.css'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/assets/styles.css.map' to 'assets/styles.css.map'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicon-16x16.png' to 'favicon-16x16.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicon-32x32.png' to 'favicon-32x32.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-114x114.png' to 'favicons/cp/apple-touch-icon-114x114.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-120x120.png' to 'favicons/cp/apple-touch-icon-120x120.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-144x144.png' to 'favicons/cp/apple-touch-icon-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-152x152.png' to 'favicons/cp/apple-touch-icon-152x152.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-57x57.png' to 'favicons/cp/apple-touch-icon-57x57.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-60x60.png' to 'favicons/cp/apple-touch-icon-60x60.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-72x72.png' to 'favicons/cp/apple-touch-icon-72x72.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/apple-touch-icon-76x76.png' to 'favicons/cp/apple-touch-icon-76x76.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/favicon-128.png' to 'favicons/cp/favicon-128.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/favicon-16x16.png' to 'favicons/cp/favicon-16x16.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/favicon-196x196.png' to 'favicons/cp/favicon-196x196.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/favicon-32x32.png' to 'favicons/cp/favicon-32x32.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/favicon-96x96.png' to 'favicons/cp/favicon-96x96.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/favicon.ico' to 'favicons/cp/favicon.ico'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/mstile-144x144.png' to 'favicons/cp/mstile-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/mstile-150x150.png' to 'favicons/cp/mstile-150x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/mstile-310x150.png' to 'favicons/cp/mstile-310x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/mstile-310x310.png' to 'favicons/cp/mstile-310x310.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/cp/mstile-70x70.png' to 'favicons/cp/mstile-70x70.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-114x114.png' to 'favicons/dc/apple-touch-icon-114x114.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-120x120.png' to 'favicons/dc/apple-touch-icon-120x120.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-144x144.png' to 'favicons/dc/apple-touch-icon-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-152x152.png' to 'favicons/dc/apple-touch-icon-152x152.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-57x57.png' to 'favicons/dc/apple-touch-icon-57x57.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-60x60.png' to 'favicons/dc/apple-touch-icon-60x60.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-72x72.png' to 'favicons/dc/apple-touch-icon-72x72.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/apple-touch-icon-76x76.png' to 'favicons/dc/apple-touch-icon-76x76.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/favicon-128.png' to 'favicons/dc/favicon-128.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/favicon-16x16.png' to 'favicons/dc/favicon-16x16.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/favicon-196x196.png' to 'favicons/dc/favicon-196x196.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/favicon-32x32.png' to 'favicons/dc/favicon-32x32.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/favicon-96x96.png' to 'favicons/dc/favicon-96x96.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/favicon.ico' to 'favicons/dc/favicon.ico'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/mstile-144x144.png' to 'favicons/dc/mstile-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/mstile-150x150.png' to 'favicons/dc/mstile-150x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/mstile-310x150.png' to 'favicons/dc/mstile-310x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/mstile-310x310.png' to 'favicons/dc/mstile-310x310.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/dc/mstile-70x70.png' to 'favicons/dc/mstile-70x70.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-114x114.png' to 'favicons/lc/apple-touch-icon-114x114.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-120x120.png' to 'favicons/lc/apple-touch-icon-120x120.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-144x144.png' to 'favicons/lc/apple-touch-icon-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-152x152.png' to 'favicons/lc/apple-touch-icon-152x152.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-57x57.png' to 'favicons/lc/apple-touch-icon-57x57.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-60x60.png' to 'favicons/lc/apple-touch-icon-60x60.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-72x72.png' to 'favicons/lc/apple-touch-icon-72x72.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/apple-touch-icon-76x76.png' to 'favicons/lc/apple-touch-icon-76x76.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/favicon-128.png' to 'favicons/lc/favicon-128.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/favicon-16x16.png' to 'favicons/lc/favicon-16x16.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/favicon-196x196.png' to 'favicons/lc/favicon-196x196.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/favicon-32x32.png' to 'favicons/lc/favicon-32x32.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/favicon-96x96.png' to 'favicons/lc/favicon-96x96.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/favicon.ico' to 'favicons/lc/favicon.ico'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/mstile-144x144.png' to 'favicons/lc/mstile-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/mstile-150x150.png' to 'favicons/lc/mstile-150x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/mstile-310x150.png' to 'favicons/lc/mstile-310x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/mstile-310x310.png' to 'favicons/lc/mstile-310x310.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/lc/mstile-70x70.png' to 'favicons/lc/mstile-70x70.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-114x114.png' to 'favicons/swc/apple-touch-icon-114x114.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-120x120.png' to 'favicons/swc/apple-touch-icon-120x120.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-144x144.png' to 'favicons/swc/apple-touch-icon-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-152x152.png' to 'favicons/swc/apple-touch-icon-152x152.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-57x57.png' to 'favicons/swc/apple-touch-icon-57x57.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-60x60.png' to 'favicons/swc/apple-touch-icon-60x60.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-72x72.png' to 'favicons/swc/apple-touch-icon-72x72.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/apple-touch-icon-76x76.png' to 'favicons/swc/apple-touch-icon-76x76.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/favicon-128.png' to 'favicons/swc/favicon-128.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/favicon-16x16.png' to 'favicons/swc/favicon-16x16.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/favicon-196x196.png' to 'favicons/swc/favicon-196x196.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/favicon-32x32.png' to 'favicons/swc/favicon-32x32.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/favicon-96x96.png' to 'favicons/swc/favicon-96x96.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/favicon.ico' to 'favicons/swc/favicon.ico'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/mstile-144x144.png' to 'favicons/swc/mstile-144x144.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/mstile-150x150.png' to 'favicons/swc/mstile-150x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/mstile-310x150.png' to 'favicons/swc/mstile-310x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/mstile-310x310.png' to 'favicons/swc/mstile-310x310.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/favicons/swc/mstile-70x70.png' to 'favicons/swc/mstile-70x70.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/mstile-150x150.png' to 'mstile-150x150.png'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/safari-pinned-tab.svg' to 'safari-pinned-tab.svg'
#> Copying '../../../../../home/runner/work/_temp/Library/varnish/pkgdown/assets/site.webmanifest' to 'site.webmanifest'
#> ── Scanning episodes to rebuild ────────────────────────────────────────
#> Writing 'instructor/CODE_OF_CONDUCT.html'
#> Writing 'CODE_OF_CONDUCT.html'
#> Writing 'instructor/LICENSE.html'
#> Writing 'LICENSE.html'
#> Writing 'instructor/introduction.html'
#> Writing 'introduction.html'
#> ── Creating learner profiles ───────────────────────────────────────────
#> Writing 'instructor/profiles.html'
#> Writing 'profiles.html'
#> ── Creating homepage ───────────────────────────────────────────────────
#> Writing 'instructor/index.html'
#> Writing 'index.html'
#> ── Creating keypoints summary ──────────────────────────────────────────
#> Writing 'instructor/key-points.html'
#> Writing 'key-points.html'
#> ── Creating All-in-one page ────────────────────────────────────────────
#> Writing 'instructor/aio.html'
#> Writing 'aio.html'
#> ── Creating Images page ────────────────────────────────────────────────
#> Writing 'instructor/images.html'
#> Writing 'images.html'
#> ── Creating Instructor Notes ───────────────────────────────────────────
#> Writing 'instructor/instructor-notes.html'
#> Writing 'instructor-notes.html'
#> ── Creating sitemap.xml ────────────────────────────────────────────────
#> 
#> Output created: /tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/site/docs/index.html
#> ::endgroup::
#> ::group::Commit Lesson Website
#> Running git commit --allow-empty -m \
#>   'site deploy
#> 
#> Auto-generated via {sandpaper}
#> Source  : 25a9c1c3bb5f37d534458eb120dadcd65f9be3c9
#> Branch  : md-outputs
#> Author  : Jerry Johnson <jerry@gmail.com>
#> Time    : 2023-01-26 18:04:26 +0000
#> Message : markdown source builds
#> 
#> Auto-generated via {sandpaper}
#> Source  : 8af9e582b193de36ecdeca387d0f0bd9318caaec
#> Branch  : main
#> Author  : Jerry Johnson <jerry@gmail.com>
#> Time    : 2023-01-26 18:04:21 +0000
#> Message : Initial commit [via {sandpaper}]
#> '
#> [gh-pages 994a7fd] site deploy
#>  144 files changed, 8970 insertions(+)
#>  create mode 100644 .nojekyll
#>  create mode 100644 CODE_OF_CONDUCT.html
#>  create mode 100644 LICENSE.html
#>  create mode 100644 aio.html
#>  create mode 100644 android-chrome-192x192.png
#>  create mode 100644 android-chrome-512x512.png
#>  create mode 100644 apple-touch-icon.png
#>  create mode 100644 assets/fonts/Mulish-Bold.ttf
#>  create mode 100644 assets/fonts/Mulish-Bold.woff
#>  create mode 100644 assets/fonts/Mulish-ExtraBold.ttf
#>  create mode 100644 assets/fonts/mulish-v5-latin-regular.eot
#>  create mode 100644 assets/fonts/mulish-v5-latin-regular.svg
#>  create mode 100644 assets/fonts/mulish-v5-latin-regular.ttf
#>  create mode 100644 assets/fonts/mulish-v5-latin-regular.woff
#>  create mode 100644 assets/fonts/mulish-v5-latin-regular.woff2
#>  create mode 100644 assets/fonts/mulish-variablefont_wght.woff
#>  create mode 100644 assets/fonts/mulish-variablefont_wght.woff2
#>  create mode 100644 assets/images/carpentries-logo-sm.svg
#>  create mode 100644 assets/images/carpentries-logo.svg
#>  create mode 100644 assets/images/data-logo-sm.svg
#>  create mode 100644 assets/images/data-logo.svg
#>  create mode 100644 assets/images/dropdown-arrow.svg
#>  create mode 100644 assets/images/incubator-logo-sm.svg
#>  create mode 100644 assets/images/incubator-logo.svg
#>  create mode 100644 assets/images/lab-logo-sm.svg
#>  create mode 100644 assets/images/lab-logo.svg
#>  create mode 100644 assets/images/library-logo-sm.svg
#>  create mode 100644 assets/images/library-logo.svg
#>  create mode 100644 assets/images/minus.svg
#>  create mode 100644 assets/images/plus.svg
#>  create mode 100644 assets/images/software-logo-sm.svg
#>  create mode 100644 assets/images/software-logo.svg
#>  create mode 100644 assets/scripts.js
#>  create mode 100644 assets/styles.css
#>  create mode 100644 assets/styles.css.map
#>  create mode 100644 bootstrap-toc.css
#>  create mode 100644 bootstrap-toc.js
#>  create mode 100644 config.yaml
#>  create mode 100644 docsearch.css
#>  create mode 100644 docsearch.js
#>  create mode 100644 favicon-16x16.png
#>  create mode 100644 favicon-32x32.png
#>  create mode 100644 favicons/cp/apple-touch-icon-114x114.png
#>  create mode 100644 favicons/cp/apple-touch-icon-120x120.png
#>  create mode 100644 favicons/cp/apple-touch-icon-144x144.png
#>  create mode 100644 favicons/cp/apple-touch-icon-152x152.png
#>  create mode 100644 favicons/cp/apple-touch-icon-57x57.png
#>  create mode 100644 favicons/cp/apple-touch-icon-60x60.png
#>  create mode 100644 favicons/cp/apple-touch-icon-72x72.png
#>  create mode 100644 favicons/cp/apple-touch-icon-76x76.png
#>  create mode 100644 favicons/cp/favicon-128.png
#>  create mode 100644 favicons/cp/favicon-16x16.png
#>  create mode 100644 favicons/cp/favicon-196x196.png
#>  create mode 100644 favicons/cp/favicon-32x32.png
#>  create mode 100644 favicons/cp/favicon-96x96.png
#>  create mode 100644 favicons/cp/favicon.ico
#>  create mode 100644 favicons/cp/mstile-144x144.png
#>  create mode 100644 favicons/cp/mstile-150x150.png
#>  create mode 100644 favicons/cp/mstile-310x150.png
#>  create mode 100644 favicons/cp/mstile-310x310.png
#>  create mode 100644 favicons/cp/mstile-70x70.png
#>  create mode 100644 favicons/dc/apple-touch-icon-114x114.png
#>  create mode 100644 favicons/dc/apple-touch-icon-120x120.png
#>  create mode 100644 favicons/dc/apple-touch-icon-144x144.png
#>  create mode 100644 favicons/dc/apple-touch-icon-152x152.png
#>  create mode 100644 favicons/dc/apple-touch-icon-57x57.png
#>  create mode 100644 favicons/dc/apple-touch-icon-60x60.png
#>  create mode 100644 favicons/dc/apple-touch-icon-72x72.png
#>  create mode 100644 favicons/dc/apple-touch-icon-76x76.png
#>  create mode 100644 favicons/dc/favicon-128.png
#>  create mode 100644 favicons/dc/favicon-16x16.png
#>  create mode 100644 favicons/dc/favicon-196x196.png
#>  create mode 100644 favicons/dc/favicon-32x32.png
#>  create mode 100644 favicons/dc/favicon-96x96.png
#>  create mode 100644 favicons/dc/favicon.ico
#>  create mode 100644 favicons/dc/mstile-144x144.png
#>  create mode 100644 favicons/dc/mstile-150x150.png
#>  create mode 100644 favicons/dc/mstile-310x150.png
#>  create mode 100644 favicons/dc/mstile-310x310.png
#>  create mode 100644 favicons/dc/mstile-70x70.png
#>  create mode 100644 favicons/lc/apple-touch-icon-114x114.png
#>  create mode 100644 favicons/lc/apple-touch-icon-120x120.png
#>  create mode 100644 favicons/lc/apple-touch-icon-144x144.png
#>  create mode 100644 favicons/lc/apple-touch-icon-152x152.png
#>  create mode 100644 favicons/lc/apple-touch-icon-57x57.png
#>  create mode 100644 favicons/lc/apple-touch-icon-60x60.png
#>  create mode 100644 favicons/lc/apple-touch-icon-72x72.png
#>  create mode 100644 favicons/lc/apple-touch-icon-76x76.png
#>  create mode 100644 favicons/lc/favicon-128.png
#>  create mode 100644 favicons/lc/favicon-16x16.png
#>  create mode 100644 favicons/lc/favicon-196x196.png
#>  create mode 100644 favicons/lc/favicon-32x32.png
#>  create mode 100644 favicons/lc/favicon-96x96.png
#>  create mode 100644 favicons/lc/favicon.ico
#>  create mode 100644 favicons/lc/mstile-144x144.png
#>  create mode 100644 favicons/lc/mstile-150x150.png
#>  create mode 100644 favicons/lc/mstile-310x150.png
#>  create mode 100644 favicons/lc/mstile-310x310.png
#>  create mode 100644 favicons/lc/mstile-70x70.png
#>  create mode 100644 favicons/swc/apple-touch-icon-114x114.png
#>  create mode 100644 favicons/swc/apple-touch-icon-120x120.png
#>  create mode 100644 favicons/swc/apple-touch-icon-144x144.png
#>  create mode 100644 favicons/swc/apple-touch-icon-152x152.png
#>  create mode 100644 favicons/swc/apple-touch-icon-57x57.png
#>  create mode 100644 favicons/swc/apple-touch-icon-60x60.png
#>  create mode 100644 favicons/swc/apple-touch-icon-72x72.png
#>  create mode 100644 favicons/swc/apple-touch-icon-76x76.png
#>  create mode 100644 favicons/swc/favicon-128.png
#>  create mode 100644 favicons/swc/favicon-16x16.png
#>  create mode 100644 favicons/swc/favicon-196x196.png
#>  create mode 100644 favicons/swc/favicon-32x32.png
#>  create mode 100644 favicons/swc/favicon-96x96.png
#>  create mode 100644 favicons/swc/favicon.ico
#>  create mode 100644 favicons/swc/mstile-144x144.png
#>  create mode 100644 favicons/swc/mstile-150x150.png
#>  create mode 100644 favicons/swc/mstile-310x150.png
#>  create mode 100644 favicons/swc/mstile-310x310.png
#>  create mode 100644 favicons/swc/mstile-70x70.png
#>  create mode 100644 fig/introduction-rendered-pyramid-1.png
#>  create mode 100644 images.html
#>  create mode 100644 index.html
#>  create mode 100644 instructor-notes.html
#>  create mode 100644 instructor/CODE_OF_CONDUCT.html
#>  create mode 100644 instructor/LICENSE.html
#>  create mode 100644 instructor/aio.html
#>  create mode 100644 instructor/images.html
#>  create mode 100644 instructor/index.html
#>  create mode 100644 instructor/instructor-notes.html
#>  create mode 100644 instructor/introduction.html
#>  create mode 100644 instructor/key-points.html
#>  create mode 100644 instructor/profiles.html
#>  create mode 100644 introduction.html
#>  create mode 100644 key-points.html
#>  create mode 100644 link.svg
#>  create mode 100644 md5sum.txt
#>  create mode 100644 mstile-150x150.png
#>  create mode 100644 pkgdown.css
#>  create mode 100644 pkgdown.js
#>  create mode 100644 pkgdown.yml
#>  create mode 100644 profiles.html
#>  create mode 100644 renv.lock
#>  create mode 100644 safari-pinned-tab.svg
#>  create mode 100644 site.webmanifest
#>  create mode 100644 sitemap.xml
#> Running git remote -v
#> sandpaper-local	/tmp/RtmpsPBux1/REMOTE-1a885a120d2 (fetch)
#> sandpaper-local	/tmp/RtmpsPBux1/REMOTE-1a885a120d2 (push)
#> Running git push --force sandpaper-local 'HEAD:gh-pages'
#> To /tmp/RtmpsPBux1/REMOTE-1a885a120d2
#>    0e06c6a..994a7fd  HEAD -> gh-pages
#> ::endgroup::
#> Running git worktree remove --force \
#>   /tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/site/docs
#> Running git worktree remove --force \
#>   /tmp/RtmpsPBux1/file1a8871f8dd4e/lesson-example/site/built
tok <- Sys.time()
cli::cli_alert_info("Elapsed time: {round(tok - tik, 2)} seconds")
#>  Elapsed time: 11.48 seconds

# reporting -----
# The repository and remote should both have three branches
cli::cli_h2("Local status")
#> 
#> ── Local status ──
#> 
gert::git_branch_list(repo = res)[c('name', 'commit', 'updated')]
#> # A tibble: 6 × 3
#>   name                       commit                  updated            
#>   <chr>                      <chr>                   <dttm>             
#> 1 gh-pages                   994a7fdd3bc15cf2b86569… 2023-01-26 18:04:32
#> 2 main                       8af9e582b193de36ecdeca… 2023-01-26 18:04:21
#> 3 md-outputs                 25a9c1c3bb5f37d534458e… 2023-01-26 18:04:26
#> 4 sandpaper-local/gh-pages   994a7fdd3bc15cf2b86569… 2023-01-26 18:04:32
#> 5 sandpaper-local/main       8af9e582b193de36ecdeca… 2023-01-26 18:04:21
#> 6 sandpaper-local/md-outputs 25a9c1c3bb5f37d534458e… 2023-01-26 18:04:26

# An indicator this worked: the first episode should be represented as
# different files across the branches:
# - main: Rmd
# - md-outputs: md
# - gh-pages: html
cli::cli_h2("First episode status")
#> ── First episode status ──
#> 
gert::git_stat_files("episodes/introduction.Rmd", repo = rmt)
#> # A tibble: 1 × 5
#>   file             created             modified            commits head 
#> * <chr>            <dttm>              <dttm>                <int> <chr>
#> 1 episodes/introd… 2023-01-26 18:04:21 2023-01-26 18:04:21       1 8af9…
cli::cli_h3("rendered markdown")
#> ── rendered markdown 
gert::git_stat_files("introduction.md", repo = rmt, ref = "md-outputs")
#> # A tibble: 1 × 5
#>   file            created             modified            commits head  
#> * <chr>           <dttm>              <dttm>                <int> <chr> 
#> 1 introduction.md 2023-01-26 18:04:26 2023-01-26 18:04:26       1 25a9c…
cli::cli_h3("html file")
#> 
#> ── html file 
gert::git_stat_files("introduction.html", repo = rmt, ref = "gh-pages")
#> # A tibble: 1 × 5
#>   file             created             modified            commits head 
#> * <chr>            <dttm>              <dttm>                <int> <chr>
#> 1 introduction.ht… 2023-01-26 18:04:32 2023-01-26 18:04:32       1 994a…

# CLEAN -------------------------------------------------------------------
tik <- Sys.time()
cli::cli_h1("Clean Up")
#> 
#> ── Clean Up ────────────────────────────────────────────────────────────
snd$remove_local_remote(repo = res)
#> /tmp/RtmpsPBux1/REMOTE-1a885a120d2
snd$reset_git_user(res)
# remove the test fixture and report
tryCatch(fs::dir_delete(res), error = function() FALSE)
tok <- Sys.time()
cli::cli_alert_info("Elapsed time: {round(tok - tik, 2)} seconds")
#>  Elapsed time: 0.09 seconds