pub fn standalone_body(
call_expr: &str,
final_return: &str,
indent: &str,
) -> StringExpand description
Generate a standalone-function R wrapper body.
Returns the full body string: .val <- <call_expr>; if (...) return(...); <final_return>.
Used for top-level #[miniextendr] functions (not class methods).
call_expr: The.Call()expression to evaluatefinal_return: The expression to return (typically".val"or"invisible(.val)")indent: Leading whitespace for the body lines (e.g.," "for 2-space)