Re: [R-pkg-devel] Compiler warning using C versions of base R integrate function

2019-12-02 Thread Devin Incerti
Thank you, Tomas, that is very helpful. On Thu, Nov 28, 2019 at 4:41 AM Tomas Kalibera wrote: > On 11/21/19 7:25 PM, Devin Incerti wrote: > > Hi, > > > > I'm attempting to submit a very minor update to my package where I > replaced > > a deprecated C++ function with an alternative. However, I'm

Re: [R-pkg-devel] Compiler warning using C versions of base R integrate function

2019-11-28 Thread Tomas Kalibera
On 11/21/19 7:25 PM, Devin Incerti wrote: Hi, I'm attempting to submit a very minor update to my package where I replaced a deprecated C++ function with an alternative. However, I'm receiving an unrelated warning "*array subscript -1 is outside array bounds of ‘double [52]’ [-Warray-bounds] *"

Re: [R-pkg-devel] Compiler warning using C versions of base R integrate function

2019-11-22 Thread Devin Incerti
Hi Serguei and Ralf, the thoughts and suggestions are much appreciated. Ironically, I used to use RcppNumerical to do the integration but switched over to integrate.c because I was receiving a compiler warning and to eliminate the dependency on RcppEigen. Do you think I should switch back to

Re: [R-pkg-devel] Compiler warning using C versions of base R integrate function

2019-11-22 Thread Ralf Stubner
On Thu, Nov 21, 2019 at 7:25 PM Devin Incerti wrote: > I'm attempting to submit a very minor update to my package where I replaced > a deprecated C++ function with an alternative. However, I'm receiving an > unrelated warning "*array subscript -1 is outside array bounds of ‘double > [52]’

[R-pkg-devel] Compiler warning using C versions of base R integrate function

2019-11-21 Thread Devin Incerti
Hi, I'm attempting to submit a very minor update to my package where I replaced a deprecated C++ function with an alternative. However, I'm receiving an unrelated warning "*array subscript -1 is outside array bounds of ‘double [52]’ [-Warray-bounds] *" on Debian during the CRAN pre-tests. I do