No such file or directory can not be found when reading file in R
Recently, while reading the file, the following problem occurred
> Passenger = read. CSV (‘ international – the airline – passengers. CSV, sep = ‘, ‘)
Error in File (file, “RT “) : Unable to open link
Warning Message:
In the file (file, “rt”) :
Unable to open file ‘international-Airline-passengers. CSV ‘: No such file or Directory
R can’t find the file.
File path, divided into absolute path and relative path, using absolute path is troublesome, usually use relative path, and relative path refers to, relative to the current working path.
Using the geTWd () function, you can get the current working path
Solution 1
Set the directory where the international-airline-travel.csv file is placed to the working directory
Solution 2
Copy the file international-airline-passengers. CSV to the current working directory
Read More:
- Solve syntax error: unexpected end of file or /bin/bash^m: bad interpeneter: no match file or directory
- Cannot open include file: ‘io.h‘: No such file or directory
- No code, a solution to the error in the path of reading CSV file by Python: filenotfounderror: [errno 2] no such file or directory: ‘XX. CSV‘
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- When Python Django creates a database, can’t open file ‘ manage.py ‘: [Errno 2] No such file or directory
- Importerror of [docker] error: libGL.so .1: cannot open shared object file: No such file or directory
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- Ubuntu 64 prompts bash: no such file or directory file exists
- [tools] vscode debug report G + +. Exe no such file or directory fatal error no input files
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- Solution to error opening trace file: no such file or directory (2) in Android
- OSError: libnccl.so.2: cannot open shared object file: No such file or directory
- Python FileNotFoundError: [Errno 2] No such file or directory: ‘objects/epsilon.pkl
- Cannot chdir: no such file or directory solution
- [C]fatal error: mysql.h: No such file or directory
- Can’t exec “aclocal”: No such file or directory
- [MySQL]SQLSTATE[HY000] [2002] No such file or directory
- Error: enoent: no such file or directory, stat