docx_extract_all_cmnts: Extract all comments from a Word document

Description Usage Arguments Value Examples

View source: R/comments.R

Description

Extract all comments from a Word document

Usage

1
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

1
2
3
4
cmnts <- read_docx(system.file("examples/comments.docx", package="docxtractr"))
docx_cmnt_count(cmnts)
docx_describe_cmnts(cmnts)
docx_extract_all_cmnts(cmnts)

Example output

[1] 3
Word document [/usr/local/lib/R/site-library/docxtractr/examples/comments.docx]

Found 3 comments.
# A tibble: 1 x 2
     author `# Comments`
      <chr>        <int>
1 boB Rudis            3
# A tibble: 3 x 5
     id    author                 date initials
  <chr>     <chr>                <chr>    <chr>
1     0 boB Rudis 2016-07-01T21:09:00Z       bR
2     1 boB Rudis 2016-07-01T21:09:00Z       bR
3     2 boB Rudis 2016-07-01T21:09:00Z       bR
# ... with 1 more variables: comment_text <chr>

docxtractr documentation built on July 8, 2020, 6:23 p.m.