| ggml_set_abort_callback_r | R Documentation |
Converts GGML abort calls into R errors (via Rf_error). This allows R to catch GGML failures with tryCatch.
ggml_set_abort_callback_r()
NULL invisibly
Other logging:
ggml_abort_is_r_enabled(),
ggml_log_is_r_enabled(),
ggml_log_set_default(),
ggml_log_set_r(),
ggml_set_abort_callback_default()
ggml_set_abort_callback_r()
# Now GGML aborts will become R errors
result <- tryCatch({
# ... ggml operations that might fail ...
}, error = function(e) {
message("GGML error caught: ", e$message)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.