Displaying 10 results from an estimated 10 matches for "carval".
Did you mean:
varval
2006 Jun 03
3
More on bug 7924
...= 0, named = 2, gp = 0, mark = 1,
debug = 0,
trace = 0, fin = 0, gcgen = 0, gccls = 1}, attrib = 0x508818,
gengc_next_node = 0x6db278, gengc_prev_node = 0x8442b8, u =
{primsxp = {
offset = 2}, symsxp = {pname = 0x2, value = 0x230002acc2,
internal = 0x21000090}, listsxp = {carval = 0x2, cdrval =
0x230002acc2,
tagval = 0x21000090}, envsxp = {frame = 0x2, enclos =
0x230002acc2,
hashtab = 0x21000090}, closxp = {formals = 0x2, body =
0x230002acc2,
env = 0x21000090}, promsxp = {value = 0x2, expr = 0x230002acc2,
env = 0x21000090}}}
#0 DEBUG_SET_...
1998 Jun 04
1
aov
...sting */
/* needs to be taken care of. */
To continue on this approach, and follow up on these FIXMEs, I need to
understand some of the internal functions like CAR, CDR, and
combinations thereof. I found the definition of CAR in
src/include/Defn.h as:
#define CAR(e) ((e)->u.listsxp.carval)
But where is u.listsxp.carval defined? For that matter, where is the
Scheme/LISP interpreter?
Is there a roadmap? list of where the different pieces of R reside?
Jim Robison-Cox ____________
Department of Math Sciences | | phone: (406)994-534...
2009 Jun 25
1
R data inspection under gdb?
...o = {type = 16, obj = 0, named = 0, gp = 0, mark = 0, debug = 0,
trace = 0, spare = 0, gcgen = 0, gccls = 1},
attrib = 0x608f98, gengc_next_node = 0xa82328, gengc_prev_node = 0xa822c8,
u = {primsxp = {offset = 1}, symsxp = {
pname = 0x1, value = 0x146fb50, internal = 0x2000000a}, listsxp =
{carval = 0x1, cdrval = 0x146fb50,
tagval = 0x2000000a}, envsxp = {frame = 0x1, enclos = 0x146fb50,
hashtab = 0x2000000a}, closxp = {formals = 0x1,
body = 0x146fb50, env = 0x2000000a}, promsxp = {value = 0x1, expr =
0x146fb50, env = 0x2000000a}}}
which suggests to me that x is not "void&q...
2019 Nov 04
2
Questions on the R C API
Hi All,
I have some questions regarding the R C API.
Let's assume I have a function which is defined as follows:
R file:
myfunc <- function(a, b, ...) .External(Cfun, a, b, ...)
C file:
SEXP Cfun(SEXP args) {
args = CDR(args);
SEXP a = CAR(args); args = CDR(args);
SEXP b = CAR(args); args = CDR(args);
/* continue to do something with remaining arguments in "..."
2008 Mar 31
1
(PR#11054) "Writing R Extensions": bad example with CAR
...t;-DUSE_RINTERNALS".
Looking at the output of the preprocessor output reveals that without
USE_RINTERNALS, the line "CAR(a)=b" stays as it is, i.e. presents the
compiler with a function call as l-value, while with USE-RINTERNALS, it
gets macro-expanded to "((a)->u.listsxp.carval) = b", which is now a
valid expression.
From this observation, I assumed that CAR is implemented as a function
usually and as a macro only when USE_RINTERNALS is defined. Further, I
assumed that the proper way for extensions to set car values is to write
"SETCAR(a,b)", while R...
1998 Jul 01
4
R-beta: R-0.62.1 under Digital Unix
I am grateful for the advice of Douglas Bates on my earlier problem in making
R-0.62.1, but I'm afraid I'm still having problems....
I have been installing the various updates to R for quite some time on my
alpha, and it is only now that I have been having really severe problems.
The three or 4 versions before 0.61.1 installed without error. For 0.61.1 I
needed to install GNU make.
For
2006 Jun 02
2
Helping out - simple bugs to help familiarize with R design, source, etc
Hi All,
Well I finally have found the time to get svn working and I have
successfully built my own tuned atlas (multi-threaded version) libs
and have both the r-devel and r-patched trees building daily on my box.
The problem is I still do not have a good idea of the layout and
design of R, and typically I "learn by doing" by trying to fix a bug
that hits me. Unfortunately ;-)
2019 Nov 04
0
Questions on the R C API
...ves like a linked list(I might be wrong here and
please correct me if so). Therefore, there is no simple way to locate an
element in a pairlist. As for as I know, R defines a set of
convenient functions for you to access a limited number of elements. See
below
```
#define CAR(e) ((e)->u.listsxp.carval)
#define CDR(e) ((e)->u.listsxp.cdrval)
#define CAAR(e) CAR(CAR(e))
#define CDAR(e) CDR(CAR(e))
#define CADR(e) CAR(CDR(e))
#define CDDR(e) CDR(CDR(e))
#define CDDDR(e) CDR(CDR(CDR(e)))
#define CADDR(e) CAR(CDR(CDR(e)))
#define CADDDR(e) CAR(CDR(CDR(CDR(e))))
#define CAD4R(e) CAR(CDR(CDR(CDR(CDR...
2019 Nov 05
1
Questions on the R C API
...wrong here and
> please correct me if so). Therefore, there is no simple way to locate an
> element in a pairlist. As for as I know, R defines a set of
> convenient functions for you to access a limited number of elements. See
> below
>
> ```
> #define CAR(e) ((e)->u.listsxp.carval)
> #define CDR(e) ((e)->u.listsxp.cdrval)
> #define CAAR(e) CAR(CAR(e))
> #define CDAR(e) CDR(CAR(e))
> #define CADR(e) CAR(CDR(e))
> #define CDDR(e) CDR(CDR(e))
> #define CDDDR(e) CDR(CDR(CDR(e)))
> #define CADDR(e) CAR(CDR(CDR(e)))
> #define CADDDR(e) CAR(CDR(CDR(CDR(e)...
2008 Apr 29
2
reproducible segmentation fault caused by textConnection()
Dear all,
It seems that textConnection() can trigger a segmentation fault. The
following script (using two large loops) makes this bug reproducible:
for (i in 1:10000) {
z=textConnection(NULL,open='w')
for (j in 1:100) {
write(runif(1)*1e6,file=z)
write('\n',file=z)
}
close(z)
}
The bug could be reproduced on R-2.6.1, R-2.7.0 and on the latest
R-devel