I've included some example code below that should work for this. The R API does not have a way to read a file path from S3. Due to this, we have to copy the file locally to the notebook and then read it from the disk. The code below highlights this.
#Set directory to current notebook path. File is the file you want to access #getwd() is used to set the path to the notebooks current directory directory<- paste(getwd(),"/myfolderlocal/", sep="") file<-paste(directory,"samplepptx.pptx",sep="")
#Have to copy to a local folder first, we don't have an API to access folder content on S3 with paths copy<- dkuManagedFolderCopyToLocal("myfolder",directory)
#Read the powerpoint as normal from disk mydata<-read_pptx(file) content <- pptx_summary(mydata) content