'Find and Replace Words (.Docx) Broken into Chunks with Officer:
I'm working on an R script than finds and replaces text in a formatted Word document. A file is uploaded and I use body_replace_all_text() to replace certain codes with phrases. However, when analyzing my uploaded files the codes in the document text are all broken into chunks, as per the function's documentation. However, his makes finding (and replacing) codes broken into chunks impossible.
Are there any alternatives to either body_replace_all_text() or the Officer package that will let me read in a .docx and find and replace text between chunks? Or any way to remove/collapse those chunks? I do need to retain formatting and potentially replace text within tables.
Thanks in advance for any suggestions.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
