Closed maelle closed 5 years ago
Thank you for PR!
Yes, unlist is not a good idea here. One only needs to unlist when multiple values are inserted in one field (if it is multiple select type of field). This is now done on air_prepare_record
.
Wow thanks for a super quick response! Awesome!
Thanks for a very useful package!
I've noticed I can't upload a data.frame containing Boolean columns unless I split it into its rows.
It's because
unlist(as.list(records[i,]), recursive = FALSE)
inair_insert_data_frame()
transforms logicals into strings, therefore the subsequent call tojsonlite::toJSON()
creates JSON that's not valid for the API. Cf example below,Created on 2019-01-08 by the reprex package (v0.2.1)
The small change in this PR works for me but I have not understood the role
unlist
played with to begin with so might be breaking other things. :wink: