Re: [Rd] length(unclass(x)) without unclass(x)?

2017-03-06 Thread Radford Neal
> Henrik Bengtsson: > > I'm looking for a way to get the length of an object 'x' as given by > base data type without dispatching on class. The performance improvement you're looking for is implemented in the latest version of pqR (pqR-2016-10-24, see pqR-project.org), along with corresponding

[Rd] Potential clue for Bug 16975 - lme fixed sigma - inconsistent REML estimation

2017-03-06 Thread Francisco Mauro
Dear list, I was trying to create a VarClass for nlme to work with Fay-Herriot (FH) models. The idea was to create a modification of VarComb that instead of multiplying the variance functions made their sum (I called it varSum). After some fails etc... I found that the I was not getting the

Re: [Rd] can we override "if" in R?

2017-03-06 Thread Gabriel Becker
Mark, I do understand this desire, though notably, if selecting a single element from one of these custom vectors gave you a normal value, if would be safe, right? e.g. if the [ method, etc checked if the index length is one, and returned the non-compressed value if it was, as an off-the-cuff

Re: [Rd] Seeking advice regarding compilation of large libraries using RTools (Windows)

2017-03-06 Thread Richard Beare
Yep - simpleITK is available at github.com/SimpleITK/SimpleITK. There's also github.com/SimpleITK/SimpleITKRInstaller - a devtools based installer for mac and linux. CMake has a range of build environments. I experimented with MSYS2 and mingw makefiles, but had trouble with incompatibilities in

Re: [Rd] Please add me to bugzilla

2017-03-06 Thread Martin Maechler
> Bradley Broom > on Mon, 6 Mar 2017 06:55:35 -0600 writes: > Apologies, I thought I was following exactly that sentence > and trying to make a minimal post that would waste as > little developer bandwidth as possible given the lack of a > better

Re: [Rd] Please add me to bugzilla

2017-03-06 Thread Bradley Broom
Apologies, I thought I was following exactly that sentence and trying to make a minimal post that would waste as little developer bandwidth as possible given the lack of a better system. Anyway, I have been using R for like forever (20 years). In my current project, I have run into problems with

Re: [Rd] Control statements with condition with greater than one should give error (not just warning) [PATCH]

2017-03-06 Thread Martin Maechler
> Michael Lawrence > on Sat, 4 Mar 2017 12:20:45 -0800 writes: > Is there really a need for these complications? Packages > emitting this warning are broken by definition and should be fixed. I agree and probably Henrik, too. (Others may disagree

Re: [R-pkg-devel] best way the handle errors conditionally

2017-03-06 Thread Duncan Murdoch
On 06/03/2017 5:17 AM, Thierry Onkelinx wrote: Dear all, I'd like your advice on handling errors conditionally within a function. Imagine a function that does several database operations. The user has the option to run them inside a transaction. So the code has somewhere near the top: if

Re: [Rd] Seeking advice regarding compilation of large libraries using RTools (Windows)

2017-03-06 Thread Jeroen Ooms
On Mon, Mar 6, 2017 at 6:33 AM, Richard Beare wrote: > I am working on the SimpleITK package for R. This is an enormous package > that is largely automatically generated via a set of swig/json/lua magic, > and is working well under linux and osx. Is it available

Re: [Rd] Please add me to bugzilla

2017-03-06 Thread Martin Maechler
> Bradley Broom > on Sun, 5 Mar 2017 16:03:30 -0600 writes: > Please add me to R bugzilla. Thanks, Bradley Well, I will not do it just like that (mean "after such a minimal message"). I don't see any evidence as to your credentials, knowledge of R, etc, as

[Rd] Seeking advice regarding compilation of large libraries using RTools (Windows)

2017-03-06 Thread Richard Beare
Hello, I am working on the SimpleITK package for R. This is an enormous package that is largely automatically generated via a set of swig/json/lua magic, and is working well under linux and osx. However we're having a lot of trouble with the Windows side. In fact, we are struggling to get the