Extract all comments from a Word document
docx_extract_all_cmnts(docx, include_text = FALSE)data_frame of comment id, author & text
cmnts <- read_docx(system.file("examples/comments.docx", package="docxtractr"))
docx_cmnt_count(cmnts)
#> [1] 3
docx_describe_cmnts(cmnts)
#> Word document [/tmp/Rtmp11DZ5B/temp_libpath3e24ea68b2f632/docxtractr/examples/comments.docx]
#>
#> Found 3 comments.
#> author # Comments
#> 1 boB Rudis 3
docx_extract_all_cmnts(cmnts)
#> # A tibble: 3 × 5
#> id author date initials comment_text
#> * <chr> <chr> <chr> <chr> <chr>
#> 1 0 boB Rudis 2016-07-01T21:09:00Z bR This is the first comment
#> 2 1 boB Rudis 2016-07-01T21:09:00Z bR This is the second comment
#> 3 2 boB Rudis 2016-07-01T21:09:00Z bR This is a reply to the second c…