Extract all comments from a Word document

docx_extract_all_cmnts(docx, include_text = FALSE)

Arguments

docx

docx object read with read_docx

include_text

if TRUE then the text associated with the comment will also be included

Value

data_frame of comment id, author & text

Examples

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…