Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jsonLite repr #151

Merged
merged 3 commits into from
Jun 10, 2024
Merged

Add jsonLite repr #151

merged 3 commits into from
Jun 10, 2024

Conversation

flying-sheep
Copy link
Member

Fixes #146

@flying-sheep
Copy link
Member Author

@robertour I couldn’t find a more complex dataframe structure that R doesn’t consider “damaged” so if you can, now is the time to get it into this PR

@robertour
Copy link

do you mean something like this?

complex_example  = structure(list(`_id` = c(272538886144, 1248, 
1432432, 1496184576), createdAt = structure(c(1626034012, 
1626372704, 1631013467, 1631617963), class = c("POSIXct", "POSIXt"
)), possiblySensitive = c(FALSE, FALSE, FALSE, FALSE), source = c("http://example.com", 
"http://example.com", "http://example.com", "http://example.com"
), text = c("DUMMY", "DUMMY", "DUMMY", "DUMMY"), isRetweet = c(FALSE, 
TRUE, FALSE, FALSE), user = structure(list(id = c(42, 42, 42, 
42), name = c("who, me", "who, me", "who, me", "who, me"), screenName = c("not_me", 
"not_me", "not_me", "not_me")), row.names = c(NA, 4L), class = "data.frame"), 
    deleted = c(0L, 0L, 0L, 0L), `user$id` = c(2, 2, 2, 2)), row.names = c(NA, 
-4L), class = c("tbl_df", "tbl", "data.frame"))

this is base on the data that I was using, but anonymized

@flying-sheep
Copy link
Member Author

Nice! Yeah, it should work now, but it’s not very pretty.

I’d have to rework a lot to make nested dataframes be displayed semantically

@flying-sheep flying-sheep added this pull request to the merge queue Jun 10, 2024
Merged via the queue into main with commit 49e8b23 Jun 10, 2024
2 checks passed
@flying-sheep flying-sheep deleted the fix-jsonlite branch June 10, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error while displaying an object (again)
2 participants