Displaying 6 results from an estimated 6 matches for "rf_inherits".
2019 Nov 01
4
[External] R C api for 'inherits' S3 and S4 objects
Thank you Luke.
That is why I don't use Rf_inherits but INHERITS which does not
allocate, provided in the email body.
I cannot do similarly for S4 classes, thus asking for some API for that.
On Fri, Nov 1, 2019 at 5:56 PM Tierney, Luke <luke-tierney at uiowa.edu> wrote:
>
> On Fri, 1 Nov 2019, Jan Gorecki wrote:
>
> > Dear R de...
2019 Nov 01
0
[External] R C api for 'inherits' S3 and S4 objects
On Fri, 1 Nov 2019, Jan Gorecki wrote:
> Thank you Luke.
> That is why I don't use Rf_inherits but INHERITS which does not
> allocate, provided in the email body.
Your definition can allocate because STING_ELT can allocate.
getAttrib can GC in general. Currently it would not GC or allocate in
this case, but this could change.
You can't assume thread-safety for calls into the R API,...
2019 Nov 01
3
R C api for 'inherits' S3 and S4 objects
Dear R developers,
Motivated by discussion about checking inheritance of S3 and S4
objects (in head matrix/array topic) I would light to shed some light
on a minor gap about that matter in R C API.
Currently we are able to check inheritance for S3 class objects from C
in a robust way (no allocation, thread safe). This is unfortunately
not possible for S4 classes. I would kindly request new
2018 Mar 14
0
R crashing with a segmentation fault: how to locate the cause
...output below.
I am not sure how to proceed from here (other than binary search with print
statements).
Any help would be appreciated.
Thanks,
Eric
==12589== Invalid read of size 1
==12589== at 0x4C2F1B1: strcmp (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12589== by 0x4F71AC1: Rf_inherits (in /usr/lib/R/lib/libR.so)
==12589== by 0x11AFED3A: dplyr::subset_visitor_vector(SEXPREC*)
(subset_visitor_impl.h:51)
==12589== by 0x11AFF58C: dplyr::subset_visitor(SEXPREC*,
dplyr::SymbolString const&) (subset_visitor_impl.h:21)
==12589== by 0x11AFEC18:
dplyr::DataFrameSubsetVisitors...
2019 Nov 01
0
[External] R C api for 'inherits' S3 and S4 objects
...objects (in head matrix/array topic) I would light to shed some light
> on a minor gap about that matter in R C API.
> Currently we are able to check inheritance for S3 class objects from C
> in a robust way (no allocation, thread safe). This is unfortunately
Your premise is not correct. Rf_inherits will not GC but it can
allocate and is not thread safe.
Best,
luke
> not possible for S4 classes. I would kindly request new function in R
> C api so it can be achieved for S4 classes with no risk of allocation.
> For reference mentioned functions below. Thank you.
> Jan Gorecki
>...
2005 Jul 19
2
segfault with grid and null unit (PR#8014)
Full_Name: Jonathan Paisley
Version: 2.1.1
OS: Mac OS X 10.4.2
Submission from: (NULL) (81.178.107.67)
I was following an example from library/grid/doc/grid.pdf ("Introduction to
grid") and had the following code, where I'd mis-typed 1,3 instead of 1,2 as the
first arguments to grid.layout.
Sourcing this code causes the R GUI to crash. I've enclosed a partial backtrace
from