EventPointer problem

Hi, and welcome!

Try

dir()

If data.csv doesn't appear, you would get the connection error if it's coming after the first line. A reproducible example, called a reprex is needed to see which.