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

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

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Conversation

howardbaik
Copy link
Contributor

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.

@howardbaik howardbaik requested a review from cansavvy April 5, 2024 23:57
Copy link
Contributor

@cansavvy cansavvy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. Yes, I think you're right this line is unnecessary.

@howardbaik howardbaik merged commit 5d44949 into main Apr 9, 2024
4 checks passed
@howardbaik howardbaik deleted the fix-bug branch April 9, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants