jhudsl / ottrpal

Tools for converting OTTR courses into Leanpub or Coursera courses :otter:
https://jhudatascience.org/ottrpal/
GNU General Public License v3.0
3 stars 1 forks source link

Make screenshots script needs to be functionalized and added into ottrpal #145

Open cansavvy opened 3 days ago

cansavvy commented 3 days ago

What needs to be done:

make-screenshots.R needs to be functionalized and added to the ottrpal package (along with a unit test).

Currently its called like this:

Rscript --vanilla make_screenshots.R \
            --git_pat ${{ secrets.GH_PAT }} \
            --repo $GITHUB_REPOSITORY \
            --output_dir resources/chapt_screen_images

So each of these options should become arguments in the new function.

After an initial PR that adds this as a function (along with a test in both test-rmd-leanpub-prep.R and test-quarto-leanpub-prep.R

Then later: