Unable to read in a file after updating R version and R Studio version

Yesterday I updated my R to version 3.6.0. I updated my R Studio to Desktop version 1.2.1335. I use Windows 10.
A file that successfully ran for months

tfilePath <- "C:/Users/mlrob/Documents/en_US/en_US.twitter.txt"

twitter <- readLines(tfilePath, skipNul = TRUE)

showed an error message

Error in file(con, "r") : cannot open the connection

In addition: Warning message:

In file(con, "r") :
cannot open file 'C:/Users/mlrob/Documents/en_US/en_US.twitter.txt': No such file or directory

How can I get it to work again?

Are you sure the file exists? Can you check again if the path and filename are correct?

It's possible to replace C:/Users/mlrob/Documents/ with ~/ to make your code work across platforms

Yes it worked! Thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.