Skip to content

Commit

Permalink
Change function name: pptx_url() -> export_url()
Browse files Browse the repository at this point in the history
  • Loading branch information
howardbaek committed Jul 17, 2023
1 parent 0266c49 commit 4850c0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/notes_to_fig_alt.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
get_gs_pptx <- function(id) {
id <- as.character(id)
pres_id <- get_slide_id(id)
url <- pptx_url(id = pres_id)
url <- export_url(id = pres_id)

pptx_file <- file.path(paste0(pres_id, ".pptx"))

# Only download it if it isn't yet present
if (!file.exists(pptx_file)) {
result <- httr::GET(url, httr::write_disk(pptx_file))
Expand Down Expand Up @@ -49,7 +49,7 @@ get_gs_pptx <- function(id) {
}


pptx_url <- function(id, page_id = NULL, type = "pptx") {
export_url <- function(id, page_id = NULL, type = "pptx") {
url = paste0(
"https://docs.google.com/presentation/d/",
id, "/export/", type, "?id=", id)
Expand Down

0 comments on commit 4850c0f

Please sign in to comment.