@@ -76,7 +76,7 @@ fn format_values(x: SEXP, format_options: &FormatOptions) -> anyhow::Result<Vec<
76
76
STRSXP => Ok ( format_chr ( x) ) ,
77
77
LGLSXP => Ok ( format_lgl ( x) ) ,
78
78
CPLXSXP => Ok ( format_cpl ( x) ) ,
79
- VECSXP => Ok ( format_vec ( x) ) ,
79
+ VECSXP => Ok ( format_list ( x) ) ,
80
80
_ => Err ( anyhow:: anyhow!( "Unsupported column type" ) ) ,
81
81
}
82
82
}
@@ -129,7 +129,7 @@ fn format_object(x: SEXP) -> Vec<FormattedValue> {
129
129
}
130
130
}
131
131
132
- fn format_vec ( x : SEXP ) -> Vec < FormattedValue > {
132
+ fn format_list ( x : SEXP ) -> Vec < FormattedValue > {
133
133
let len = r_length ( x) ;
134
134
let mut output = Vec :: < FormattedValue > :: with_capacity ( len as usize ) ;
135
135
@@ -138,15 +138,15 @@ fn format_vec(x: SEXP) -> Vec<FormattedValue> {
138
138
let formatted = if r_is_null ( elt) {
139
139
FormattedValue :: NULL
140
140
} else {
141
- FormattedValue :: Value ( format_vec_elt ( elt) )
141
+ FormattedValue :: Value ( format_list_elt ( elt) )
142
142
} ;
143
143
output. push ( formatted) ;
144
144
}
145
145
146
146
output
147
147
}
148
148
149
- fn format_vec_elt ( x : SEXP ) -> String {
149
+ fn format_list_elt ( x : SEXP ) -> String {
150
150
// We don't use `r_classes` because we want to see, eg 'numeric' for
151
151
// numeric vectors, not an empty value.
152
152
let class: Vec < String > = RFunction :: new ( "base" , "class" )
0 commit comments