You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the following code goes into infinite recursion:
x = data.frame(a=ymd_hms("2023-01-01 00:00:00"))
x = x %>% mutate(b = trunc(a, "months"))
str(x)
x %>% datatable()
'data.frame': 1 obs. of 2 variables:
$ a: POSIXct, format: "2023-01-01"
$ b: POSIXlt, format: "2023-01-01"
Error: C stack usage 7954712 is too close to the limit
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
Hi Team,
I noticed that the following code goes into infinite recursion:
Running traceback() gives:
The data type that
trunc
returns is POSIXlt. It seems to me that serializing this datatype to HTML is breaking. When I change my code above to:It works as expected.
Any idea why the POSIXlt might be tripping datatable up?
Please note this is also affecting the most recent versions of all packages as well, I had to downgrade to see if it was a recent regression:
By filing an issue to this repo, I promise that
xfun::session_info('DT')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/DT')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: