addImage-methods: Insert an external image into the docx document

Description Usage Arguments Examples

Description

Insert an external image into the Docx object.

Usage

1
2
  ## S4 method for signature 'Docx,character,character'
addImage(x, filename, bookmark)

Arguments

x

the Docx to use

filename

a character value ; image filename

bookmark

a character value ; id of the Word bookmark to replace by the image. optional

Examples

1
2
3
4
5
## Not run: 
doc <- new("Docx", title = "My example" )
doc = addImage( doc, "D:/img/image.png")

## End(Not run)

davidgohel/R2DOCX documentation built on May 14, 2019, 11:13 p.m.