Get Slide ID from URL
get_slide_id(x) make_slide_url(x) get_folder_id(x)
x | URL of slide |
---|
A character vector
x = paste0("https://docs.google.com/presentation/d/", "1Tg-GTGnUPduOtZKYuMoelqUNZnUp3vvg_7TtpUPL7e8", "/edit#slide=id.g154aa4fae2_0_58") get_slide_id(x)#> [1] "1Tg-GTGnUPduOtZKYuMoelqUNZnUp3vvg_7TtpUPL7e8"x = "https://drive.google.com/drive/folders/1pXBQQdd1peI56GtQT-jEZ59xSmhqQlFC?usp=sharing" get_folder_id(x)#> [1] "1pXBQQdd1peI56GtQT-jEZ59xSmhqQlFC"x = "1pXBQQdd1peI56GtQT-jEZ59xSmhqQlFC" get_folder_id(x)#> [1] "1pXBQQdd1peI56GtQT-jEZ59xSmhqQlFC"