Re: [Rd] Use of `[` with array and resulting class

2023-09-30 Thread Matt Denwood
Hi Joseph This behaviour is as expected (and as documented by ?`[`) because the default of drop=TRUE coerces the result to the lowest possible dimension, which in your case is a vector rather than array. Using for example: b[1,,,drop=FALSE] ... results in an output array with the same number

Re: [Rd] depending on orphaned packages?

2019-09-30 Thread Matt Denwood
Hi Bob I had also started working on SuppDists a couple of months ago as I needed to expose some of the distributions at C-level for use in another package. Perhaps I/we could create a GitHub repo and collaborate on this? I’m happy for you to take the lead, but a job shared is a job halved an

Re: [Rd] normalizePath is sometimes very slow for nonexistent UNC paths

2014-09-07 Thread Matt Denwood
Maximum 0.02022958 seconds out of 10^6 runs for me, so no obvious problem on OS X 10.9 (Snow Leopard build). Matt > library(microbenchmark) > (timings <- microbenchmark( + normalizePath("some/network/drive", mustWork = FALSE), + times = 1e6, + unit = "s" + )) Unit: seconds