R/PPT.ApplyTemplate.R

"PPT.ApplyTemplate" <-function(ppt,file){



#file<-PPT.getAbsolutePath(file[1]) #New in Version 1.1
file[1]<-normalizePath(file[1]) #New in Version 2.2

if(!file.exists(file)) stop(paste(file, "does not exist"))
file<-gsub("/","\\\\",as.character(file))

#comInvoke(ppt$pres,"ApplyTemplate",file)
ppt$pres$ApplyTemplate(file)

return(invisible(ppt))
}

Try the R2PPT package in your browser

Any scripts or data that you put into this service are public.

R2PPT documentation built on April 26, 2022, 5:08 p.m.