Closed raphywink closed 10 years ago
Ok, let’s just not support windows maybe. No one is using it anymore, right?
On Jul 2, 2014, at 11:15 AM, Raphael Winkelmann notifications@github.com wrote:
The normalizePath that fixed this issue with all the other functions strangely doesn't fix the issue for affilter()
affilter(wavFiles[1]) Error in affilter(wavFiles[1]) : Cant open file (C:/Users/raphael/Documents/R/win-library/3.1/wrassp/extdata/lbo001.wav) — Reply to this email directly or view it on GitHub.
Where is the damn like button when you need it! But unfortunately the people at CRAN and the usage statistics of operating systems disagree...
Fun fact: the stdio.h
function tmpfile()
used by a function called by affilter here tries to write to the toplevel directory (C:/) under windows which it is not allowed to do. Hence the error... running R with admin privileges fixes the bug! I feel like breaking something... aarrrrrgggghhhhh
7e8470fb18ad3dcf fixes the problem. We now check to see if OS is Windows and if this is the case we use the GetTempPath();
and GetTempFileName();
from window.h
to get a valid tmp file path.
The
normalizePath
that fixed this issue with all the other functions strangely doesn't fix the issue foraffilter()