我fread从data.table包中使用过,当我尝试修改或删除文件时(只需用记事本打开),windows说:

如何解锁此绑定?
编辑:
尝试在R中给出相同的结果
cat(file="C:/Users/MCarrie/Desktop/test/test2.txt")
Error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'C:/Users/MCarrie/Desktop/test/test2.txt': Permission denied
Run Code Online (Sandbox Code Playgroud)
信息:
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.8.8
loaded via a namespace (and not attached):
[1] tools_3.0.1
> showConnections(all=T)
description class mode text isopen can read can write
0 "stdin" "terminal" "r" "text" "opened" "yes" "no"
1 "stdout" "terminal" "w" "text" "opened" "no" "yes"
2 "stderr" "terminal" "w" "text" "opened" "no" "yes"
Run Code Online (Sandbox Code Playgroud)
正在阅读的文件:(缺少报价)
"AA",3,4,5,"w"
"ss,2,3,4,"s"
"ww",2,3,3,"s"
Run Code Online (Sandbox Code Playgroud)
请重试data.table v1.8.11。data.table主页上有一个适用于Windows的新.zip 。
来自新闻:
如果fread返回数据错误(例如,特定行上的引号不平衡),则它现在首先关闭文件,而不是保持打开状态,这是Windows唯一的问题。感谢nigmastar的报告和Carl Witthoft的提示。测试已添加。