| 249 | } |
| 250 | |
| 251 | LGBM_SE LGBM_DatasetGetFieldSize_R(LGBM_SE handle, |
| 252 | LGBM_SE field_name, |
| 253 | LGBM_SE out, |
| 254 | LGBM_SE call_state) { |
| 255 | R_API_BEGIN(); |
| 256 | const char* name = R_CHAR_PTR(field_name); |
| 257 | int out_len = 0; |
| 258 | int out_type = 0; |
| 259 | const void* res; |
| 260 | CHECK_CALL(LGBM_DatasetGetField(R_GET_PTR(handle), name, &out_len, &res, &out_type)); |
| 261 | if (!strcmp("group", name) || !strcmp("query", name)) { |
| 262 | out_len -= 1; |
| 263 | } |
| 264 | R_INT_PTR(out)[0] = static_cast<int>(out_len); |
| 265 | R_API_END(); |
| 266 | } |
| 267 | |
| 268 | LGBM_SE LGBM_DatasetUpdateParam_R(LGBM_SE handle, |
| 269 | LGBM_SE params, |
nothing calls this directly
no test coverage detected