https://github.com/cran/multicore
Revision 1d2886c4342f1631db9d1cef00f7d6703c099340 authored by Simon Urbanek on 08 August 1977, 00:00:00 UTC, committed by Gabor Csardi on 08 August 1977, 00:00:00 UTC
1 parent 9e52fef
Raw File
Tip revision: 1d2886c4342f1631db9d1cef00f7d6703c099340 authored by Simon Urbanek on 08 August 1977, 00:00:00 UTC
version 0.1-6
Tip revision: 1d2886c
perf.c
/* performance-enhancing functions */

#define USE_RINTERNALS 1

#include <Rinternals.h>

SEXP create_list(SEXP sLength) {
    int len = Rf_asInteger(sLength);
    if (len < 1) len = 0;
    return Rf_allocVector(VECSXP, len);
}

back to top