解决Error in file(con, “w“) : cannot open the connection问题
今天打开电脑清理了下临时文件,然后运行原有无误的R代码发现运行报错了。
不难想到这和临时文件有关,因此假如出现
Error in file(con, "w") : cannot open the connection
In addition: Warning message:
In file(con, "w") :cannot open file 'C:\Users\27394\AppData\Local\Temp\Rtmps9VoVs\file32544f3527b': No such file or directory
或
Error in file(out, “wt“) : cannot open the connection
我们可以尝试使用以下代码重新生成临时存档就可以解决相关问题。
dir.create(tempdir())
相关解释是这样的
This happens when the temporary directory used by R is deleted. This usually happens when user or the system cleans up the tmp directory while the R session is running. Typically happens if the R session is open for a long time.
Remedy is very simple. You don’t actually need to restart R. Just re-create the temporary directory by:tempdir().
希望对大家有用~
相关讨论论坛链接:https://bbs.pinggu.org/thread-4191740-1-1.html
解决Error in file(con, “w“) : cannot open the connection问题相关推荐
- Qt 解决 #error This file requires compiler and library support for the ISO C++ 2011 standard
一.Qt编译过程中,出现以下问题 #error This file requires compiler and library support for the ISO C++ 2011 standar ...
- 使用 EasyBCD 安装Ubuntu 14.04 Error 15: file not found错误的解决方法
使用 EasyBCD 安装Ubuntu 14.04 Error 15: file not found错误的解决方法 参考文章: (1)使用 EasyBCD 安装Ubuntu 14.04 Error 1 ...
- 成功解决CondaError: Error reading file, file should be a text file containing packages conda create --he
成功解决CondaError: Error reading file, file should be a text file containing packages conda create --he ...
- 解决 LLVM 错误 fatal error: ‘csignal’ file not found
错误信息: /Users/exchen/Downloads/Unity-iPhone/Classes/main.mm:3:10: fatal error: 'csignal' file not fou ...
- linux下解压大于4G文件提示error: Zip file too big错误的解决办法
error: Zip file too big (greater than 4294959102 bytes)错误解决办法.zip文件夹大于4GB,在centos下无法正常unzip,需要使用第三方工 ...
- android 模拟器read-only file system,WAC启动Android模拟器 transfer error: Read-only file system错误解决方法...
这两天在用WAC SDK开发Widget时,在启动Android模拟器时Eclipse的Consle出现如下错误: [2011-11-27 22:08:49 - ddms]transfer error ...
- mysql error writing_MySQL:Error writing file (Errcode: 28)解决方法
问题描述: 在执行创建表语句时提示: mysql> CREATE TABLE `cash_request` ( `id` int(11) NOT NULL auto_increment, `de ...
- MongoDB解决“Error parsing YAML config file: yaml-cpp: error at line 2, column value(安装服务)
解决"Error parsing YAML config file: yaml-cpp: error at line 2, column 13: illegal map value" ...
- 一起来玩树莓派--解决复制文件时出现error opening file... permission denied问题
解决复制文件时出现error opening file"..." permission denied问题 问题描述 解决方法 问题描述 想用U盘给树莓派传一些U盘过去,但是U盘插进 ...
最新文章
- 怎么画正五边形步骤_每个药店必备三伏贴的POP海报,我教你画
- python升维方法_python机器学习12:数据“升维”
- Python数理统计
- acer清理工具 clear下载_放下偏见,这些国内大厂出品的工具资源,免费又良心!...
- 刘歧:FFmpeg Filter深度应用
- 13.ThreadPoolExecutor线程池之submit方法
- 阻止事件冒泡两种方式:event.stopPropagation();和return false;
- 30 行 Javascript 代码搞定智能家居系统
- 利用HTML5 LocalStorage实现跨页面通信channel
- matlab与计量经济模型,计量经济学和matlab.pdf
- 【招聘】阿里2022届春招实习生 - 机器学习/NLP/CV等
- Laravel5.3之Container源码解析
- python 清屏_见识Python百宝箱,十行代码制作动态广告牌
- 如何利用matlab显示图像的方向矢量图
- 国家漏洞库CNNVD:关于Dnsmasq多个缓冲区错误漏洞的通报
- vscode的code runner不生成临时文件
- ESP8266串口WIFI 无线控制模块
- 微信扫描二维码实现下载app文件
- 集成电路CAD课程实验报告:反相器电路设计、版图设计与仿真
- 没有基于鸿蒙系统的app吗,华为鸿蒙操作系统为什么没有应用到手机?