Description Usage Arguments Value See Also Examples
Provides a simple method to get text from a docx document.
It returns a character
vector containing all
chunk of text found in the document.
1 | text_extract(x, body = TRUE, header = TRUE, footer = TRUE, bookmark)
|
x |
|
body |
specifies to scan document body |
header |
specifies to scan document header |
footer |
specifies to scan document footer |
bookmark |
a character value ; id of the Word bookmark to scan. |
a character vector
1 2 3 4 5 6 7 | if( check_valid_java_version() ){
doc <- docx( title = "My example", template = file.path(
system.file(package = "ReporteRs"), "templates/bookmark_example.docx") )
text_extract( doc )
text_extract( doc, header = FALSE, footer = FALSE )
text_extract( doc, bookmark = "author" )
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.