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

How can I fix this error please? I've tried to edit the input many many times but I cannot figure it out. New to Rstudio. Any help is very much appreciated.

Thanks :blush:

You either don't have permission to access this file or are the file does not exist at this location.

A few things you can try:

  • You can use getwd() to make sure you are on the path that you think you are on
  • If you are on the path that you expected, you can use list.files() to make sure the file is in the directory you are currently in

Also, I'll put this here for future reference - posting you example in the form of a reprex makes it much easier to help you.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.