39
g˜zwE˜ PPTVBA Rofficetool {0 ROffice oØ 13¥IR˘ §¥I<˘ 2014c0525F ChinaR 7th Beijing R and Office 1 / 28

E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0

R�Office��Ü

1Ô3¥IR�ó¬Æ

�®§¥I<¬�Æ

2014c05�25F

ChinaR 7th Beijing R and Office 1 / 28

Page 2: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

8 ¹

1 gÄz�w��­EïÄOffice�wLATEX�wÄuIP�ó��w�wXÚ

2 PPTÚVBA

3 Rofficetool {0

ChinaR 7th Beijing R and Office 2 / 28

Page 3: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

8 ¹

1 gÄz�w��­EïÄOffice�wLATEX�wÄuIP�ó��w�wXÚ

2 PPTÚVBA

3 Rofficetool {0

ChinaR 7th Beijing R and Office 2 / 28

Page 4: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

Word�w´¤�=¤�ü��;�

ChinaR 7th Beijing R and Office 2 / 28

Page 5: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

Excel�´�B�ü�óä

ChinaR 7th Beijing R and Office 3 / 28

Page 6: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

PPT·ÜãÚL���w

ChinaR 7th Beijing R and Office 4 / 28

Page 7: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

Office�w��­EïÄEâ

�wü�

Word�w·Üu©i'�õ�©�Excel�w·ÜL�Ú¯òPPT�w·ÜãL·ü��ª�w

�­EïÄEâ

Office �w¥�?Ûé�Ñ�±dVBA��ÏL����§�éêâ�Cz?1�#§�±¢y�­EïÄ

ChinaR 7th Beijing R and Office 5 / 28

Page 8: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

8 ¹

1 gÄz�w��­EïÄOffice�wLATEX�wÄuIP�ó��w�wXÚ

2 PPTÚVBA

3 Rofficetool {0

ChinaR 7th Beijing R and Office 6 / 28

Page 9: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

LATEX{0

{0

5¿Ö�5�Ú���

.¶©uѧÖ�lay-tech�����E©ü�óä

ÎÜ<MIO�;�ü�XÚ

SC

e1CTeXµhttp://www.ctex.org/CTeXDownloadWindowse%@SC¶LinuxeSCTexLive¦^Notepad++�©�?6ì?1?6Ú?È

ChinaR 7th Beijing R and Office 6 / 28

Page 10: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

LATEX�w«~

ChinaR 7th Beijing R and Office 7 / 28

Page 11: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

LATEX�w��­EïÄ

LATEXü�LATEX�±@�´�«�óLATEX´;.��¤�=¤�ü��ª<�I��ÄSN§�ª�dLATEX)ûÙÄu�ó�A5¦�gÄz�w�~B|

�­EïÄEâ

(ÜR ¥S��Sweave Eâ�±¢yÄuLATEX�gÄü�¦^knitr ��±¢y(¹{*�gÄz�w

ChinaR 7th Beijing R and Office 8 / 28

Page 12: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

8 ¹

1 gÄz�w��­EïÄOffice�wLATEX�wÄuIP�ó��w�wXÚ

2 PPTÚVBA

3 Rofficetool {0

ChinaR 7th Beijing R and Office 9 / 28

Page 13: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

�þ?�IP�ó))Markdown

ChinaR 7th Beijing R and Office 9 / 28

Page 14: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

Markdown�{{0

IK

# L«�?IKkA�# L«A?IK

�L

* mÞL«ÃS�L§�1\Tab �L«e�?�8aq1. mÞ��8L«kS�L

�L

* mÞL«ÃS�L§�1\Tab �L«e�?�8aq1. mÞ��8L«kS�L

�è

±Tab νö��o���m©�1L«§S�è

ã/

![Foo](http://myhomepage.com/pic.png)

ChinaR 7th Beijing R and Office 10 / 28

Page 15: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

�����w))html5

ChinaR 7th Beijing R and Office 11 / 28

Page 16: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

��html5 �w

��J

html5 �w���A:Ò´Ä���p�w�w«�6èAì§�±¢yª²�

(Üjs Eâ�±muÑ?¿�J��ÀzÐy

�­EïÄ

IP.�ó�~�B8¤gÄz�w�õU

knitr JøgÄ)¤Ä��w�õU

ChinaR 7th Beijing R and Office 12 / 28

Page 17: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

8 ¹

1 gÄz�w��­EïÄOffice�wLATEX�wÄuIP�ó��w�wXÚ

2 PPTÚVBA

3 Rofficetool {0

ChinaR 7th Beijing R and Office 13 / 28

Page 18: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 Office�w LATEX�w ÄuIP�ó��w �wXÚ

ÄuJava ÚR �±muE,��wXÚ

ChinaR 7th Beijing R and Office 13 / 28

Page 19: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

8 ¹

1 gÄz�w��­EïÄ

2 PPTÚVBAR2PPTReporteRs

3 Rofficetool {0

ChinaR 7th Beijing R and Office 14 / 28

Page 20: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

8 ¹

1 gÄz�w��­EïÄ

2 PPTÚVBAR2PPTReporteRs

3 Rofficetool {0

ChinaR 7th Beijing R and Office 14 / 28

Page 21: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

R2PPT�{0

{0

ÄuCOM�ªö�PPT�R��±#ï½�\��¡

~^õU

#ï½�mPPT©�µPPT.Init / PPT.OpenV\��¡µPPT.AddBlankSlide / PPT.AddTitleSlide /PPT.AddTextSlide3��¡¥\\㡵PPT.AddGraphicstoSlide3��¡¥\\L�µPPT.AddDataFrameA^��©�µPPT.ApplyTemplate

ChinaR 7th Beijing R and Office 14 / 28

Page 22: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

R2PPT�«~

library(R2PPT)

# #�myPres <- PPT.Init(method="RDCOMClient")

# V\µ¡myPres <- PPT.AddTitleSlide(myPres, title = "PPT�w",

subtitle = "ÄuR2PPT")

# ©imyPres <- PPT.AddTextSlide(myPres, title = "��w�)",

text="©i«� \rã/ \rL�")

# L�myPres <- PPT.AddTitleOnlySlide(myPres, title = "L�")myPres <- PPT.AddDataFrame(myPres, df = head(iris),

row.names=FALSE, size=c(55, 150, 600, 300))

ChinaR 7th Beijing R and Office 15 / 28

Page 23: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

R2PPT�«~£Y¤

# ã/jpeg(file = "D:\testRplot1.jpeg")hist(rnorm(100))dev.off()myPres <- PPT.AddTitleOnlySlide(myPres, title = "ã/")myPres <- PPT.AddGraphicstoSlide(myPres,

file = "D:\testRplot1.jpeg",size= c(55, 150, 600, 300))

# '4?§myPres <- PPT.Close(myPres)

ChinaR 7th Beijing R and Office 16 / 28

Page 24: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

8 ¹

1 gÄz�w��­EïÄ

2 PPTÚVBAR2PPTReporteRs

3 Rofficetool {0

ChinaR 7th Beijing R and Office 17 / 28

Page 25: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

ReporteRs�{0

{0

http://davidgohel.github.io/ReporteRs/index.htmlÄuJAVA �ªö�PPT�R�ÏL��N^COM�JAVA¥5¢y§õU'�´L�±nÜ?nWord!PPT9html��w

~^õU

#ï½�mPPT©�µpptxV\��¡µaddSlide¼êÚslide.layoutëê3��¡¥V\IKµaddTitle / addSubtitle3��¡¥V\©�µaddParagraph3��¡¥\\㡵addPlot3��¡¥\\L�µaddTable

ChinaR 7th Beijing R and Office 17 / 28

Page 26: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

ReporteRs�«~

library(ReporteRs)

# ���©iNoptions("ReporteRs-e" = 28)options("ReporteRs-default-font"="Arial")

# Mï#�©�pptx.file <- "document_example.pptx"doc = pptx( title = "title" )

# V\µ¡doc = addSlide( doc, slide.layout = "Title Slide" )doc = addTitle( doc, "PPT�w" )doc = addSubtitle( doc , "ÄuReporteRs")

# V\©idoc = addSlide( doc, slide.layout = "Title and Content" )doc = addTitle( doc, "Texts demo" )doc = addParagraph( doc, value = "haha")

ChinaR 7th Beijing R and Office 18 / 28

Page 27: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 R2PPT ReporteRs

ReporteRs�«~£Y¤

# V\L�doc = addSlide( doc,

slide.layout = "Title and Content" )doc = addTitle( doc, "Table example" )doc = addTable( doc, data = iris[25:33, ] )

# V\ã/doc = addSlide( doc,

slide.layout = "Title and Content" )doc = addTitle( doc, "Plot example" )doc = addPlot( doc, function( ) hist(rnorm(100) )

# �\©�writeDoc( doc, pptx.file)

ChinaR 7th Beijing R and Office 19 / 28

Page 28: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

8 ¹

1 gÄz�w��­EïÄ

2 PPTÚVBA

3 Rofficetool {0)ÛPPTRofficetool

ChinaR 7th Beijing R and Office 20 / 28

Page 29: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

8 ¹

1 gÄz�w��­EïÄ

2 PPTÚVBA

3 Rofficetool {0)ÛPPTRofficetool

ChinaR 7th Beijing R and Office 20 / 28

Page 30: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

PPT��g(�

PPTA^£PowerPoint.Application¤ù´��Ä��é�§�LPPT�A^§S

��¡ü«©�£Presentations¤Ï~�¬{¡�/��¡0

z�é�éA��äN�PPT©�

��¡�£Slides¤äN,�����¡§Ï~�{¡�/��¡0

z�é�éA����¡

ShapesvkÏ��¶¡§�3PPT¥§z����\���ÑéA��äN�ShapeShapes ´PPT¥�Ä:�ö�é�

ChinaR 7th Beijing R and Office 20 / 28

Page 31: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

¦^RDCOMClient�?1��¡(��)Û

library(RDCOMClient)

# MïPowerPointA^pptapp <- COMCreate("PowerPoint.Application")

# �mPPT©�pptfile <- normalizePath("template.pptx",

winslash = "/", mustWork = TRUE)pptpre <- pptapp[["Presentations"]]$Open(pptfile)

# �wPPT©��&Epptpre[["FullName"]]pptpre[["PageSetup"]][["SlideHeight"]]

# ½ ���¡�¡pptslide <- pptpre[["Slides"]]$Item(1)

# ½ �Shapespptslide[["Shapes"]][["Count"]] # Shapesé��êshape1 <- pptslide[["Shapes"]]$Item(1)shape1$Type() # �wShapesé�a.

ChinaR 7th Beijing R and Office 21 / 28

Page 32: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

Shapesé�{0

©i«�

Placeholderé�§?Ò´/140§S��©�«�TextBox é�§?Ò´/170§�\�©�µAutoShape é�§?Ò´/10§�\�/G!²âi�

ãLa

Charté�§?Ò´/30§Office��ãLPictureé�§?Ò´/130§�\�ã¡Tableé�§?Ò´/190§L�é�Diagramé�§?Ò´/240§�\�|�(��é�Lineé�§?Ò´/90§�\��Mediaé�§?Ò´/160§�\�xN©�

|

Groupé�§?Ò´/60§|é�§�AÏ�é�§�±�¹Ù¦�Ä:é�

ChinaR 7th Beijing R and Office 22 / 28

Page 33: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

Shapesé�{0

Ù¦é�

Callout �?Ҵ/20Comment �?Ҵ/40Freeform �?Ҵ/50EmbeddedOLEObject �?Ҵ/70FormControl �?Ҵ/80LinkedOLEObject �?Ҵ/100LinkedPicture �?Ҵ/110OLEControlObject �?Ҵ/120TextEffect �?Ҵ/150ScriptAnchor �?Ҵ/180Canvas �?Ҵ/200

ChinaR 7th Beijing R and Office 23 / 28

Page 34: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

~^é��ö�

ö��ª{0ÄuCOM �VBA �p¦^RDCOMClient �¤k�é�Ñ´¶�COMIDispatch �Ú^é�¦^/[[09/$0¼��{Úá5

©�aé�ÏL/Text0á5éSN?1Ö�Ú?U

L�é�ÏL/Cell0á5ö�z��ü���±g1mu¼êÚR¥�Matrix ?1éA

ã/é�Charté�´Office¥(¹�ãLé�Picture é�´Ü�·�ãChart �(¹53R��¸e¿ÂØ�§ ��¬kêâ �¡�(6§ØïÆ3gÄzPPT�w¥¦^Té�§�д¦^·��Pictureé�5�O

ChinaR 7th Beijing R and Office 24 / 28

Page 35: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

é�á5�?U

½ �äN�á5

|^VBA ¥é���g(�½ �'5�á5�±ÏLOffice�¸eVBE�J«µ5Ïé��B��ª´ÏLpé�|¢a,��á59�{

á5?U

RDCOMClient ­�/<-0$�Χ�±¦^R¥~^��ª?1D�

I�5¿�´§?Uá5�I�òTá5þ��é�D����Cþ§,�ÏLCþD���ª?Uá5§5¿Ø���l,�þ�é�½ �Tá5��2��D�§ÄK¬��

(½I�?U�é�§?�¼êòäNê��\�½ �

ChinaR 7th Beijing R and Office 25 / 28

Page 36: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

8 ¹

1 gÄz�w��­EïÄ

2 PPTÚVBA

3 Rofficetool {0)ÛPPTRofficetool

ChinaR 7th Beijing R and Office 26 / 28

Page 37: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

�80�

�è

GitHubµhttps://github.com/lijian13/Rofficetool

�8õU

OfficegÄz�w�óä�ÏL3PPT���Ä:þ?1?U��ª)¤E,�wéE,�PPTé�?1)Û

�8G�

ÐÚ���uÙ3GitHubþ§8c�±)ÛPPT�é�§¿UòExcel¥�L�êâ�\�PPT¥�L�é�"�5¬O\L�Úã¡�=�!Excelã/�gÄ�#±9VBA��\ë�"

ChinaR 7th Beijing R and Office 26 / 28

Page 38: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

«~�è

library("Rofficetool")pptfile <- "C:/pptfile.pptx"list1 <- parsePPT(pptfile)dF <- irisexcelfile <- "C:/excelfile.xlsx"shtindex <- 1rangelefttop <- c(5, 2)writeDfToRange(dF, excelfile, shtindex, rangelefttop)

ChinaR 7th Beijing R and Office 27 / 28

Page 39: E PPTÚVBARofficetool · g˜z wƒ„›Eï˜ PPTÚVBARofficetool{0 RƒOffice˙ Ü oØ 1Ô3¥IR−ó‹˘ fi§¥I

gÄz�w��­EïÄ PPTÚVBA Rofficetool {0 )ÛPPT Rofficetool

Thank you!Homepage: http://www.mango-solutions.com/

ChinaR 7th Beijing R and Office 28 / 28