- analysis_type
A character string indicating the type of analysis. Valid values include "summary", "PCA", "regression",
"group_comparison", "visualization", "time_series", "clustering", "biological_implication", "statistical_metrics",
"test_validity", "report", "preprocessing", and "custom".
- result_text
An object containing the analysis result to be interpreted. If it is not a character string,
it will be converted to one using capture.output.
- custom_template
An optional custom prompt template to be used when analysis_type is "custom". If NULL, a default prompt is used.
- model
The chat model to use (default: "gpt-5-nano"). Set to another supported model string if needed.
- temperature
Sampling temperature passed to the chat model (default: 1).
- api_key
API key passed to `chat4R` (defaults to OPENAI_API_KEY).
- use_fallback
If TRUE, falls back to `fallback_model` when the primary model errors.
- fallback_model
Model used when the primary model errors (default: "gpt-5-nano"). Ignored if `use_fallback = FALSE` or the primary succeeds.