Closed alexandrasouly closed 4 years ago
@szantamano: This appears to be a problem with the settings on your Windows operating system, or possibly with your installation of Rtools. The issue is that a temporary file created during the compilation of C snippets has incorrect permissions. As such, I do not think it is an issue with pomp per se, since it should arise when you use R CMD SHLIB
to compile code. The fact that it arises randomly suggests, however, that it may be a bug in the operating system that is triggered when many temporary files are created. This in turn suggests a workaround.
In building the pomp object (i.e., in your "full_pomp_model.R"), use the cdir
and cfile
options to cause the C snippets to be compiled in the current working directory. See, for example, here. Does this solve the problem?
It did work like magic, thanks a lot! Alexandra
That's great @szantamano! By the way, although this is, I think, the first time I've seen the issue with the tmp.def
file specifically, other Windows users have reported similar issues fixed in this same way, as I mentioned. I've wondered how to deal with this in a more efficient way. The problem with writing an FAQ is that the error messages vary. Maybe I just need to have a whole set of FAQs, one for each class of error message? That seems inefficient. For the moment, I have inserted a section entitled "Note to Windows users" into the help pages for all or most relevant pomp algorithms. People are not very good about reading the help pages, especially when these are long. Do you have any ideas as to how we can save other Windows users the trouble that you've been through?
I think the first page I checked was the POMP FAQ page (https://kingaa.github.io/pomp/FAQ.html), so I think adding the "Note to Windows users" section there would be helpful!
Hi Aaron,
I am occasionally getting an error message that is very mysterious to me. I tried to run the following code as a local job, I closed everything else before it and left it alone for the night: ("full_pomp_model.R" creates my pomp object)
After successfully sourcing the file and loading the packages, it gave the following error message after 1h45min of runtime:
Then, to see what was wrong, I changed to the smaller values
and this ran without any issues. I am not sure what is triggering the previous error, but I seem to get it randomly.
I'm running R version 4.0.1 (2020-06-06) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 17134)