search for: r_tryevalsilent

Displaying 5 results from an estimated 5 matches for "r_tryevalsilent".

2024 Jul 29
1
C API - no NULL pointer guarantee?
...at erezsh.org> ?????: > I'm working on bindings for the API (for zig), and was wondering if > the R's C API guarantees it won't return null pointers? The only > reference I found in the "Writing R Extensions" manual where this not > the case is `R_tryEval` and `R_tryEvalSilent`. Based on what I've been reading while working on (still very much incomplete) <https://aitap.codeberg.page/R-api>, I think that these are the only two cases where a SEXP can be null, precisely because a null pointer is distinguished from every possible value that could be returned by e...
2024 Jul 27
1
C API - no NULL pointer guarantee?
Hello, I'm working on bindings for the API (for zig), and was wondering if the R's C API guarantees it won't return null pointers? The only reference I found in the "Writing R Extensions" manual where this not the case is `R_tryEval` and `R_tryEvalSilent`. Otherwise it's unclear. The reason I care about this is syntax. Because I don't know whether SEXPs are NULL or not, then I wrap the SEXP in an optional type, and the burden is on the user to either check or assert every time you want to handle an optional SEXP. It's not too bad and p...
2024 Jul 30
1
C API - no NULL pointer guarantee?
...> > > I'm working on bindings for the API (for zig), and was wondering if > > the R's C API guarantees it won't return null pointers? The only > > reference I found in the "Writing R Extensions" manual where this not > > the case is `R_tryEval` and `R_tryEvalSilent`. > > Based on what I've been reading while working on (still very much > incomplete) <https://aitap.codeberg.page/R-api>, I think that these are > the only two cases where a SEXP can be null, precisely because a null > pointer is distinguished from every possible value th...
2024 Jul 30
1
C API - no NULL pointer guarantee?
...t;> I'm working on bindings for the API (for zig), and was wondering if >>> the R's C API guarantees it won't return null pointers? The only >>> reference I found in the "Writing R Extensions" manual where this not >>> the case is `R_tryEval` and `R_tryEvalSilent`. >> >> Based on what I've been reading while working on (still very much >> incomplete) <https://aitap.codeberg.page/R-api>, I think that these are >> the only two cases where a SEXP can be null, precisely because a null >> pointer is distinguished from eve...
2013 Nov 29
1
How to catch warnings sent by arguments of s4 methods ?
Hello, I apologized if this had already been addressed, and I also submitted this problem on SO: http://stackoverflow.com/questions/20268021/how-to-catch-warnings-sent-during-s4-method-selection Example code: setGeneric('my_method', function(x) standardGeneric('my_method') ) setMethod('my_method', 'ANY', function(x) invisible())