Skip to content

Commit d5ec59b

Browse files
committed
format_vec -> format_list
1 parent f5a39fe commit d5ec59b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/ark/src/data_explorer/format.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn format_values(x: SEXP, format_options: &FormatOptions) -> anyhow::Result<Vec<
7676
STRSXP => Ok(format_chr(x)),
7777
LGLSXP => Ok(format_lgl(x)),
7878
CPLXSXP => Ok(format_cpl(x)),
79-
VECSXP => Ok(format_vec(x)),
79+
VECSXP => Ok(format_list(x)),
8080
_ => Err(anyhow::anyhow!("Unsupported column type")),
8181
}
8282
}
@@ -129,7 +129,7 @@ fn format_object(x: SEXP) -> Vec<FormattedValue> {
129129
}
130130
}
131131

132-
fn format_vec(x: SEXP) -> Vec<FormattedValue> {
132+
fn format_list(x: SEXP) -> Vec<FormattedValue> {
133133
let len = r_length(x);
134134
let mut output = Vec::<FormattedValue>::with_capacity(len as usize);
135135

@@ -138,15 +138,15 @@ fn format_vec(x: SEXP) -> Vec<FormattedValue> {
138138
let formatted = if r_is_null(elt) {
139139
FormattedValue::NULL
140140
} else {
141-
FormattedValue::Value(format_vec_elt(elt))
141+
FormattedValue::Value(format_list_elt(elt))
142142
};
143143
output.push(formatted);
144144
}
145145

146146
output
147147
}
148148

149-
fn format_vec_elt(x: SEXP) -> String {
149+
fn format_list_elt(x: SEXP) -> String {
150150
// We don't use `r_classes` because we want to see, eg 'numeric' for
151151
// numeric vectors, not an empty value.
152152
let class: Vec<String> = RFunction::new("base", "class")

0 commit comments

Comments
 (0)