# \donttest{
# Basic usage: fetch DOIs for last 50 lines in a 'Word' document
add_doi(
input_path = "E:/references.docx",
output_path = "E:/references_doi.docx",
reference_lines = 50
)
# Notes:
# - input_path must exist and contain references.
# - output_path will be overwritten if it exists.
# - Some references may return DOI "NA" if not found on 'CrossRef'.
# }
Run the code above in your browser using DataLab