RStudio 错误消息 - 设备无法识别命令 [英] RStudio error message - the device does not recognize the command

查看:81
本文介绍了RStudio 错误消息 - 设备无法识别命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我反复收到错误消息:

错误保存文件:设备无法识别命令"一遍又一遍地弹出(每 15 秒) - 即使我没有点击保存或点击保存.

Error Save File: ' The device does not recognize the command' popping up over and over (every 15 seconds) - even when I don't click save or when I do click save.

我也无法加载文件夹中的 R 文件 - 我必须在记事本中打开它并将其复制粘贴才能看到它.

I also can't load a R file that is in my folder - I have to open it up in notepad and copy it paste it to even see it.

谁能告诉我如何解决这个问题?我安装了最新版本的 Rstudio.

Can someone let me know how to fix this? I have the latest version of Rstudio installed.

推荐答案

在某些情况下,如果您正在读取在另一个程序中打开的文件,也会发生这种情况.一般来说,如果另一个进程正在使用该文件,则 R 在读取打开/只读文件(即导入 CSV 文件)时没有问题.但是,在某些情况下,导入的锁定文件的只读限制会导致

This can also happen if you are reading from a file that is open in another program in some cases. Generally speaking R has no issues reading in files that are open / read only (i.e. import a CSV file) if that file is in use by another process. However, there are some cases where the read-only restriction from a locked file being imported causes the

错误保存文件:'设备无法识别命令'

Error Save File: ' The device does not recognize the command'

即使您不尝试读取或写入锁定文件,消息也会持续存在.

message to persist even if you are not trying to to read from or write to the locked file.

举一个具体的例子,如果你使用openxlsx导入一个你也在excel中查看的xlsx文件,在读入xlsx文件后,你会在你对R脚本进行更改并停止更多时收到错误超过几秒钟,或者当您尝试保存 R 脚本时,即使它没有触及 xlsx 文件.但是,如果您关闭 R Studio 并重新打开您的脚本,您会注意到该问题不会出现,直到您再次尝试读取 xlsx 文件.

As a specific example, if you are using openxlsx to import an xlsx file that you are also viewing in excel, after reading the xlsx file in, you will get the error whenever you make changes to your R script and stop for more than a few seconds, or when you try to save the R script, even though it is not touching the xlsx file. However, if you close R Studio and re-open your script, you will notice that the issue will not appear until you try to read the xlsx file in again.

这篇关于RStudio 错误消息 - 设备无法识别命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆