search for: usergocod

Displaying 1 result from an estimated 1 matches for "usergocod".

Did you mean: usergocode
2020 Sep 07
0
some questions about R internal SEXP types
...eed to use the Go unsafe package directly for anything other than making their function signatures valid. Similarly, the parameter passed in to Go can be C NULL, R_NilValue or a non-null value. It's a little more work in the case that C NULL needs to be distinquished from R_NilValue: ``` func UserGoCode(p unsafe.Pointer) unsafe.Pointer { if p == nil { // We have a C Null. // If this condition is omitted, v below will be // R_NilValue when p is nil. } v := (*sexp.Value)(p).Value() // We have v as a type that is one of the R TYPE values. ... ``` > IIUC the system you described, this...