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

Remove line `get_gs_pptx(url)` from `include_slide()` #126

Closed howardbaek closed 2 months ago

howardbaek commented 3 months ago

While working on the Quarto version of OTTR, I noticed that the include_slide() function was downloading a Google Slide deck as a PPTX file with get_gs_pptx(url).

After investigation, I realized that this was unnecessary as the line below, outfile <- gs_png_download(url, output_dir, overwrite = overwrite) was sufficient to download the individual slide from Google Slides as a PNG file and the next line, knitr::include_graphics(outfile, ...) embeds the PNG file in the document.