PPT.SaveAs {R2PPT} | R Documentation |
Saves a PowerPoint presentation to a specified file using rcom.
PPT.SaveAs(ppt,file)
ppt |
Required list of objects of class 'COMobject' as initialised by PPT.Init. See example. |
file |
Required filename giving the full file path to R graphics output. See example. |
ppt |
Invisibly returns an initialised list of objects of class 'COMobject'. |
You must update the list of ComObjects initialised with PPT.Init when you call this function. The full filepath must be specified. No overwrite warning is given.
Wayne Jones wayne_betws@hotmail.com
See http://sunsite.univie.ac.at/rcom for more details on rcom.
PPT.Init
,PPT.Close
,PPT.AddTitleSlide
,PPT.AddTextSlide
,PPT.AddTitleOnlySlide
,PPT.Present
,PPT.ApplyTemplate
,PPT.AddGraphicstoSlide
## Not run: #Example of generating a presentation without making it visible (can be a lot quicker!). myPres<-PPT.Init(visible=FALSE) myPres<-PPT.AddBlankSlide(myPres) myPres<-PPT.AddTitleSlide(myPres,title="Title Slide",subtitle="Subtitle here") myPres<-PPT.AddTitleOnlySlide(myPres,title="Title Only",title.fontsize=40,title.font="Arial") myPres<-PPT.AddTextSlide(myPres,title="Text Slide",text="Text1 \rText2 \rText3",text.font="Arial") myPres<-PPT.SaveAs(myPres,file=paste(getwd(),"test R2PPT Pres.ppt",sep="/")) myPres<-PPT.Close(myPres) rm(myPres) ### Open presentation myPres<-PPT.Open(file=paste(getwd(),"test R2PPT Pres.ppt",sep="/")) myPres<-PPT.Present(myPres) ## End(Not run)