Yumechi | ゆめち :ferris: :haskell: :role_ojousama: on Nostr: I really love #rstats but writing R extension is so ...
I really love #rstats but writing R extension is so counterintuitive
character vector is not CHARSXP but STRSXP, VECSXP is not a vector but a list (but Rf_allocVector()) allocates a real vector, LISTSXP is not a list but a pairlist.
Published at
2024-09-13 05:48:24Event JSON
{
"id": "f56dd03cab30ae29d561ae29fe57ffc18ecae930f15f206e6c00209cee6d8136",
"pubkey": "852f15c48099ef4aca68452e51f2d9a12d70b3c2ce417b25d968fe5b989a4d31",
"created_at": 1726206504,
"kind": 1,
"tags": [
[
"t",
"rstats"
],
[
"emoji",
"blobcatcry",
"https://mi.yumechi.jp/files/16d38b74-b7d6-4fc8-b9b1-2a3e594299c7"
],
[
"proxy",
"https://mi.yumechi.jp/notes/9y3v3grubca50v8t",
"activitypub"
]
],
"content": "I really love #rstats but writing R extension is so counterintuitive:blobcatcry:\n\ncharacter vector is not CHARSXP but STRSXP, VECSXP is not a vector but a list (but Rf_allocVector()) allocates a real vector, LISTSXP is not a list but a pairlist.",
"sig": "26d445e7ae441e08f0e7d49d2da0ad8ac915b566e9e4e681e619831c81fda91ef388b62bb41627835cb0bcf95a98a5bea8798372ce095418c7a5e0b0a4e0153c"
}