docx_show_chunk | R Documentation |
Show the structure of text tags at the current cursor. This is
most useful when trying to troubleshoot search-and-replace functionality
using body_replace_all_text
.
docx_show_chunk(x)
x |
a docx device |
body_replace_all_text
doc <- read_docx()
doc <- body_add_par(doc, "Placeholder one")
doc <- body_add_par(doc, "Placeholder two")
# Show text chunk at cursor
docx_show_chunk(doc) # Output is 'Placeholder two'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.