This error is prompting us: The file cannot open the link, which may be one of the following reasons:
- The file does not exist or the path is wrong;
- The file is being used by another program;
- Insufficient permissions to access the file;
- Insufficient hard disk memory;
Ways to try:
- You can check whether the file path is correct to ensure that the file is not occupied by other programs;
- Check that you have sufficient permissions to access the file, and make sure the hard drive has enough space;
If this error occurs when you do not execute any statement, at this time, the general reason is insufficient memory space.
Can try
dir.create(tempdir())
For the time being.
reference:
error in file(out, "wt") : cannot open the connection - CSDN文库