Skip to content
Prev 387822 / 398502 Next

Bug? Index output of C functions R_qsort_I and R_qsort_int_I is not modified

R_ext/Utils.h:void R_qsort_int_I(int *iv, int *II, int i, int j);

The last 2 arguments are int, not int*.  .C() passes pointers to vectors so
you cannot call this function directly from .C().

-Bill

On Thu, Apr 15, 2021 at 3:15 PM Evangelos Evangelou via R-help <
r-help at r-project.org> wrote:

            

  
  
Message-ID: <CAHqSRuT2nZrHZ_FXvXa4a4b9j6noHuP-6Ak28B6ACaui_Hesow@mail.gmail.com>
In-Reply-To: <CWXP265MB2151D2ED2C174E7EF8CB48B0CD4D9@CWXP265MB2151.GBRP265.PROD.OUTLOOK.COM>