search for: do_subset_dflt

Displaying 8 results from an estimated 8 matches for "do_subset_dflt".

2003 Dec 31
2
Calling primitive functions from C code
Does anyone have an example of calling primitive or internal functions from C code that they would share with me? I am having trouble trying to figure out how to construct the proper arguments to pass to "do_subset_dflt" Here is the prototype: SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho); The R_FunTab from "names.c" gives some additional information on the arguments that the function expects. {".subset", do_subset_dflt, 1, 1, -1, {PP_FUNCALL, PREC_FN, 0}}, However, th...
2003 Dec 31
2
Calling primitive functions from C code
Does anyone have an example of calling primitive or internal functions from C code that they would share with me? I am having trouble trying to figure out how to construct the proper arguments to pass to "do_subset_dflt" Here is the prototype: SEXP do_subset_dflt(SEXP call, SEXP op, SEXP args, SEXP rho); The R_FunTab from "names.c" gives some additional information on the arguments that the function expects. {".subset", do_subset_dflt, 1, 1, -1, {PP_FUNCALL, PREC_FN, 0}}, However, th...
2009 Nov 03
1
memory misuse in subscript code when rep() is called in odd way
...4, 1:8, each=2) ==26459== Conditional jump or move depends on uninitialised value(s) ==26459== at 0x80C557D: integerSubscript (subscript.c:408) ==26459== by 0x80C5EDC: Rf_vectorSubscript (subscript.c:658) ==26459== by 0x80C5FFD: Rf_makeSubscript (subscript.c:613) ==26459== by 0x80C7368: do_subset_dflt (subset.c:158) ==26459== by 0x80B4283: do_rep (Rinlinedfuns.h:161) ==26459== by 0x816491B: Rf_eval (eval.c:464) ==26459== by 0x805A726: Rf_ReplIteration (main.c:262) ==26459== by 0x805A95E: R_ReplConsole (main.c:311) ==26459== by 0x805AFBC: run_Rmainloop (main.c:964) ==26459== by...
2019 Feb 27
2
Intermittent crashes with inset `[<-` command
...4C29BC3: malloc (vg_replace_malloc.c:299) ==4711== by 0x4FB1B04: Rf_allocVector3 (memory.c:2712) ==4711== by 0x5027574: Rf_allocVector (Rinlinedfuns.h:577) ==4711== by 0x5027574: Rf_ExtractSubset (subset.c:115) ==4711== by 0x502ADCD: VectorSubset (subset.c:198) ==4711== by 0x502ADCD: do_subset_dflt (subset.c:823) ==4711== by 0x502BE90: do_subset (subset.c:661) ==4711== by 0x4F7741C: Rf_eval (eval.c:691) ==4711== by 0x4F7BAC3: Rf_evalListKeepMissing (eval.c:2955) ==4711== by 0x50200CB: R_DispatchOrEvalSP (subassign.c:1535) ==4711== by 0x50200CB: do_subassign (subassign.c:1567) =...
2019 Feb 27
0
Intermittent crashes with inset `[<-` command
...ce_malloc.c:299) > ==4711== by 0x4FB1B04: Rf_allocVector3 (memory.c:2712) > ==4711== by 0x5027574: Rf_allocVector (Rinlinedfuns.h:577) > ==4711== by 0x5027574: Rf_ExtractSubset (subset.c:115) > ==4711== by 0x502ADCD: VectorSubset (subset.c:198) > ==4711== by 0x502ADCD: do_subset_dflt (subset.c:823) > ==4711== by 0x502BE90: do_subset (subset.c:661) > ==4711== by 0x4F7741C: Rf_eval (eval.c:691) > ==4711== by 0x4F7BAC3: Rf_evalListKeepMissing (eval.c:2955) > ==4711== by 0x50200CB: R_DispatchOrEvalSP (subassign.c:1535) > ==4711== by 0x50200CB: do_subas...
2019 Feb 26
8
Intermittent crashes with inset `[<-` command
The following code crashes after about 300 iterations on my?x86_64-w64-mingw32?machine on R 3.5.2 --vanilla.?? Others have duplicated this (see?https://github.com/tidyverse/magrittr/issues/190?if necessary), but I don't know how machine/OS-dependent it may be.?? If it doesn't crash for you, please try increasing the length of the x vector. Substituting the commented-out line for the one
2013 Sep 30
1
how to interpose my own "[" function?
...e stock R "[", does some additional work, and then finally returns the modified result. But, how do I properly call the stock R "[" function? It takes a varying number of positional arguments, and its R-level closure is just: .Primitive("[") It's implemented by do_subset_dflt in src/main/subset.c. The only thing I've come up with so far is using eval after crudely re-constructing the original incoming call (example below), which is both very slow and gets some of the semantics wrong. Is there some good way for my function to just say, "take ALL my incoming ar...
2006 Jun 03
3
More on bug 7924
...enclos = 0x508818, hashtab = 0x508818}, closxp = {formals = 0x4, body = 0x508818, env = 0x508818}, promsxp = {value = 0x4, expr = 0x508818, env = 0x508818}}} #0 DEBUG_SET_NAMED (x=0x143a918, v=2) at ../../../r-devel/r-devel/R/src/main/main.c:1444 #1 0x00002aaaaac25dcd in do_subset_dflt (call=0x9e98f0, op=Variable "op" is not available.) at ../../../r-devel/r-devel/R/src/main/subset.c:160 Breakpoint 1, DEBUG_SET_NAMED (x=0x9e8db0, v=1) at ../../../r-devel/r-devel/R/src/main/main.c:1444 1444 (x->sxpinfo.named) = v; $21 = 0x9e8db0 $22 = {sxpinfo = {typ...