search for: allocsexp

Displaying 6 results from an estimated 6 matches for "allocsexp".

2009 Oct 01
2
creating environments in package's C code
Dear developers, is it possible to create environments in C code of packages? Simply using SEXP env; PROTECT (env = allocSExp(ENVSXP)); and assigning the enclosing environment with SET_ENCLOS seems to be insufficient. Best wishes, Martin -- Dr. Martin Becker Statistics and Econometrics Saarland University Campus C3 1, Room 206 66123 Saarbruecken Germany
2013 Mar 03
1
Missing PROTECT in mkPRIMSXP ?
...atching the memory location of length_op, once assigned, for a write at the address of length_op (gdb) b mapply.c:46 (gdb) r ... (gdb) p length_op $11 = (SEXP) 0x4d772a0 (gdb) watch *0x4d772a0 (gdb) c leads to (gdb) c Continuing. Hardware watchpoint 4: *0x4d772a0 Old value = 8 New value = 0 Rf_allocSExp (t=<optimized out>) at /home/biocbuild/src/R-3.0.r62077/src/main/memory.c:2056 2056 TYPEOF(s) = t; which is R writing a new SEXP to the length_op location, as though this location had been garbage collected. Asking for R_Primitive("length") in mapply.c gets us to dstr...
2000 May 30
2
Documentatio: typo in Writing R Extensions (PR#557)
Full_Name: stephen eglen Version: 1.0.0 OS: Unix (OSF/1) Submission from: (NULL) (129.215.238.26) Hi, in the documentation `Writing R Extensions', the section 3.6.1 (handling the effects of garbage collection) has the following typo: Protecting a SEXP pointer protexts ... Should that be `protects'? -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2000 May 22
1
character arguments with call_R (PR#552)
character arguments with call_R do not work except in the first position. (In other positions, they just yield a single blank character.) The error is at line 1858 of dotcode.c which should be changed from STRING(CAR(pcall))[i]=s; to STRING(CAR(pcall))[0]=s; Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read
2010 Aug 29
1
Feature request: put NewEnvironment and R_NewhashedEnv into API
Hi, as Seth Falcon in 2006, I also need to create new environments from package C code. Unfortunately, both NewEnvironment and R_NewHashedEnv are not yet part of the public API, if I understand correctly. Is it planned to add at least one of these functions to the public API in the near future? May I submit a patch? Otherwise I would need to re-implement much of the functionality of R
2024 May 13
1
[External] R hang/bug with circular references and promises
On Mon, 13 May 2024 09:54:27 -0500 (CDT) luke-tierney--- via R-devel <r-devel at r-project.org> wrote: > Looks like I added that warning 22 years ago, so that should be enough > notice :-). I'll look into removing it now. Dear Luke, I've got a somewhat niche use case: as a way of protecting myself against rogue *.rds files and vulnerabilities in the C code, I've been