docx_show_chunk

0th

Percentile

Show underlying text tag structure

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.

Usage
docx_show_chunk(x)
Arguments
x

a docx device

See Also

body_replace_all_text

Aliases
  • docx_show_chunk
Examples
# NOT RUN {
library(magrittr)

doc <- read_docx() %>%
  body_add_par("Placeholder one") %>%
  body_add_par("Placeholder two")

# Show text chunk at cursor
docx_show_chunk(doc)  # Output is 'Placeholder two'
# }
Documentation reproduced from package officer, version 0.3.5, License: GPL-3

Community examples

Looks like there are no examples yet.