# NOT RUN {
# create a rdocx object with default template ---
read_docx()
print(read_docx())
# write a rdocx object in a docx file ----
if( require(magrittr) ){
read_docx() %>% print(target = "out.docx")
# full path of produced file is returned
print(.Last.value)
}
# how many element are there in the document ----
length( read_docx() )
# }
Run the code above in your browser using DataCamp Workspace