I'm trying to import Word documents into R using the officer package. However, with some documents I get an error message and with others, they import perfectly fine.
Attleboro <- read_docx("d://Attleboro.docx")
Error: could not find file "d://Attleboro.docx"
Documents that are imported successfully and unsuccessfully are from the same drive.
Can you just confirm that a different function, e.g. file.exists() does find the file? Put the file path in a variable to make sure it's not a subtle typo: