Displaying 1 result from an estimated 1 matches for "getmatrixdimen".
2004 Jun 22
3
[Q] GET_DIM() crash on Windows only
...e) {
    if (version$major == 1 && version$minor < 8.1) {
        stop("Requires R 1.8.1 or later")
    }
    library.dynam("getdim", pkgname, libname)
}
src/getdim.c
------------
#include <R.h>
#include <Rdefines.h>
#include <R_ext/PrtUtil.h>
int GetMatrixDimen(SEXP vntX, int *nrow, int *ncol)
{
    SEXP vntXdim;
    int nX;
#ifdef DEBUG_GETDIM
    REprintf("In GetMatrixDimen()...\n");
#endif
/**** Code crashes here on Windoze ******/
    PROTECT(vntXdim = GET_DIM(vntX));
#ifdef DEBUG_GETDIM
    REprintf("\tgot dimension object\n");...