r - fread (data.table) locks files -


i have used fread data.table package , when try modify or delete file (just open notepad) windows says:

enter image description here

how can unlock binding?

edit:

trying in r gives same

cat(file="c:/users/mcarrie/desktop/test/test2.txt") error in file(file, ifelse(append, "a", "w")) :    cannot open connection in addition: warning message: in file(file, ifelse(append, "a", "w")) :   cannot open file 'c:/users/mcarrie/desktop/test/test2.txt': permission denied 

info:

> 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 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"   

file being read: (missing quote put on purpose)

"aa",3,4,5,"w" "ss,2,3,4,"s" "ww",2,3,3,"s" 

please retry data.table v1.8.11. there's new .zip windows on data.table homepage.

from news :

if fread returns data error (such unbalanced quotes on particular line) closes file first rather holding lock open, windows problem. nigmastar reporting , carl witthoft hint. tests added.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -