jsonlite icon indicating copy to clipboard operation
jsonlite copied to clipboard

rbind_pages doesn't handle named lists with data.frame columns.

Open jasonelaw opened this issue 4 years ago • 0 comments

rbind_pages seems to have an issue with named lists that have data.frame columns:

df1 <- data.frame(f = letters[1:4], x = rnorm(4))
df2 <- data.frame(id = 1:4)
df2$value <- df1

jsonlite::rbind_pages(list(df2, df2))

jsonlite::rbind_pages(list(a = df2, b = df2))

Notice the value column is NA in the second call. I have opened a pull request that fixes the issue.

jasonelaw avatar Jul 01 '20 17:07 jasonelaw