-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error while displaying an object (again) #146
Comments
it really is weird: 'data.frame': 1 obs. of 1 variable:
$ something:'data.frame': 1 obs. of 1 variable:
..$ weird: int 1 |
If you tell me how to actually create such an object, I’ll fix it, but … > str(data.frame(something=data.frame(weird=1)))
'data.frame': 1 obs. of 1 variable:
$ weird: num 1 > b <- data.frame()
> b$something <- data.frame(weird=1)
> str(b)
Error in `$<-.data.frame`(`*tmp*`, something, value = structure(list(weird = 1), class = "data.frame", row.names = c(NA, : Ersetzung hat 1 Zeile, Daten haben 0
Traceback:
1. `$<-`(`*tmp*`, something, value = structure(list(weird = 1), class = "data.frame", row.names = c(NA,
. -1L)))
2. `$<-.data.frame`(`*tmp*`, something, value = structure(list(weird = 1), class = "data.frame", row.names = c(NA,
. -1L)))
3. stop(sprintf(ngettext(N, "replacement has %d row, data has %d",
. "replacement has %d rows, data has %d"), N, nrows), domain = NA) |
I'm not sure what you mean, didn't I describe above? a = '[{"something":{"weird":1}}]'
df_that_doesnt_display = jsonlite::fromJSON(a)
df_that_doesnt_display |
Sure, I mean without 3rd party libraries so I can add a test case |
@flying-sheep, I am encountering the same error. I transformed the example of @gegnew with
@flying-sheep, as quick solution you can use |
Thank you! Added a PR to fix this |
There appears to still be an issue with rich display, a la #97 and #131
Example
b
works fine. Examplea
should return some rich version of:but instead gives:
The text was updated successfully, but these errors were encountered: