I was updating an R package which, during compilation, created a DLL file that Avira flagged and quarantined. I took the file out of quarantine, but it was saved in a directory named 00LOCK-<pkg_name> under the directory where installed R packages are saved on my system (Windows 10 Home). It contains several empty subdirectories and a single DLL file at the bottom of the directory tree.I cannot remove either the file or the directory despite the fact that I am the owner of all the parent directories and the file itself (verified from cmd). I have administrator rights on this machine and have never had this problem in the past. I have previously been able to remove 00LOCK directories without issue - the difference in this case is that Avira quarantined a file which apparently has silently changed ownership rights.
R has been stopped and restarted twice in an attempt to reinstall the package, but it fails to compile because the temporary directory is locked...and cannot be deleted.
I've tried to remove it by right clicking the file and highlighting Delete; by going into cmd, drilling down to the (one) file in question and typing 'del <pkg>>.dll; and by trying to recursively remove directories and files from the top level 00LOCK directory. In each case, I get either Permission denied or Access is denied without further explanation.
What is Avira doing that is preventing me from removing this directory? BTW, the inability to have this package installed has repercussions on other installed R packages (i.e., there are dependencies), so it matters. I'm using the free community edition of Avira for home use on a Windows 10 Home system.
Please sign in to leave a comment.