Import word documents with quanteda

43 Views Asked by At

Hello I'm not succeding in importing word documents quanteda. I'm using this command

my_texts <- readtext::readtext("~/Users/grouetl/Documents/ProjetsLISE/Boimondau/Transcriptionstribunal/.doc*")

and get this error message:

Error in list_files(file, ignore_missing, TRUE, verbosity) : File '' does not exist.

2

There are 2 best solutions below

3
Ken Benoit On

Most likely your wildcard expression is wrong.

Try this in the Terminal:

ls ~/Users/grouetl/Documents/ProjetsLISE/Boimondau/Transcriptionstribunal/.doc*

If nothing results, then your pattern is wrong.

I would suggest you try:

readtext("~/Users/grouetl/Documents/ProjetsLISE/Boimondau/Transcriptionstribunal/*.doc*")
0
laurent_grouet On

I tried both was and also changed my files to txt but I always get the same result. I go back to tm package to import my files ..