R/PPT.SaveAs.R

"PPT.SaveAs" <-function(ppt,file=stop("filename must be specified.")){



#file<-PPT.getAbsolutePath(file)
file<-normalizePath(file[1],mustWork = FALSE) #New in Version 2.2

file<-gsub("/","\\\\",as.character(file)) #character should be \\\\ and not / some legacy compatibility issues. 

ppt$pres$SaveAs(file)
#comInvoke(ppt$pres,"SaveAs",gsub("/","\\\\",as.character(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.