Skip to content

Commit

Permalink
Style it
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed May 23, 2024
1 parent 4dd8ba2 commit f13cb13
Showing 1 changed file with 24 additions and 28 deletions.
52 changes: 24 additions & 28 deletions tests/testthat/test-rmd_leanpub_prep.R
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@

test_that("Tocless render for Rmd") {

# render_without_toc()

# TODO: This should be functionalized and incorporated into the package
# curl -o make_screenshots.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/make_screenshots.R
#chapt_urls=$(Rscript --vanilla make_screenshots.R \
# --git_pat ${{ secrets.GH_PAT }} \
# --repo $GITHUB_REPOSITORY \
# --output_dir resources/chapt_screen_images)
}


test_that("Create Leanpub IFrames for Rmd"){

# ottrpal::bookdown_to_embed_leanpub(
# render = FALSE, \
# chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \
# make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}'), \
# quiz_dir = NULL)

#ottrpal::bookdown_to_embed_leanpub(
# render = FALSE, \
# chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \
# make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}'))

}
test_that("Tocless render for Rmd", {
# render_without_toc()

# TODO: This should be functionalized and incorporated into the package
# curl -o make_screenshots.R https://raw.githubusercontent.com/jhudsl/ottr-reports/main/scripts/make_screenshots.R
# chapt_urls=$(Rscript --vanilla make_screenshots.R \
# --git_pat ${{ secrets.GH_PAT }} \
# --repo $GITHUB_REPOSITORY \
# --output_dir resources/chapt_screen_images)
})


test_that("Create Leanpub IFrames for Rmd", {
# ottrpal::bookdown_to_embed_leanpub(
# render = FALSE, \
# chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \
# make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}'), \
# quiz_dir = NULL)

# ottrpal::bookdown_to_embed_leanpub(
# render = FALSE, \
# chapt_img_key = 'resources/chapt_screen_images/chapter_urls.tsv', \
# make_book_txt = as.logical('${{needs.yaml-check.outputs.make_book_txt}}'))
})

0 comments on commit f13cb13

Please sign in to comment.