Re: [Rd] Bug in file.access on Windows when using network shares

2018-07-03 Thread Nick Kennedy
Dear Tomas, Thanks for your email. This can be easily reproduced if there is access to a shared folder. I've reproduced this behaviour on both Windows 7 and Windows 10. Steps to reproduce: 1. Ensure Offline Files is turned on within Windows 2. Using Windows Explorer, browse to a folder shared on

[Rd] Inconsistencies when extracting with non-integer numeric indices near zero

2018-07-03 Thread Emil Bode
Dear R-devel, When I was playing around with different kind of indices when subsetting I noticed some unexpected behaviours when using non-integer numeric indices, especially near zero. From the docs: “Numeric values are coerced to integer as by as.integer

Re: [Rd] base::mean not consistent about NA/NaN

2018-07-03 Thread Barry Rowlingson
On Tue, Jul 3, 2018 at 10:12 AM, Jan Gorecki wrote: > Thank you for interesting examples. > I would find useful to document this behavior also in `?mean`, while `+` > operator is also affected, the `sum` function is not. `sum` is "affected" on my system, if you mean: > sum(c(NA,NaN)) [1] NA > su

Re: [Rd] base::mean not consistent about NA/NaN

2018-07-03 Thread Jan Gorecki
Thank you for interesting examples. I would find useful to document this behavior also in `?mean`, while `+` operator is also affected, the `sum` function is not. For mean, NA / NaN could be handled in loop in summary.c. I assume that performance penalty of fix is the reason why this inconsistency

Re: [Rd] Bug in file.access on Windows when using network shares

2018-07-03 Thread Tomas Kalibera
Dear Nick, thank you for your report. In general one cannot know reliably in advance whether reading a file will work, if nothing else, there are possible race conditions with other applications and/or the system (e.g. a service may lock the file, move it away temporarily, etc). The only co