-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Unknown bug arises from using cache = TRUE & data.table #1457
Comments
You don't need real data to create a reproducible example. Use simulated / random data instead. Since the same error occurred without using knitr (e.g. Rdatatable/data.table#2046), I doubt if it is really a knitr issue. Anyway, without a reproducible example, I cannot do anything about it (i.e. I cannot fix an issue only by guessing, especially when the error comes from another package that I don't maintain). Sorry. |
I don't think the issue is the same. and I haven't been able to reliably reproduce in mocked up data, though I've tried a bit to force it Of course I understand you can't devote much time on open ended guessing. Posted this 1) in case something obvious came to mind or you had a suggestion to assay the issue a bit more and 2) to update if/when I can nail down the issue to something reproducible. thanks. |
Sounds good. I'll be happy to re-open this issue when we are sure it is knitr's fault. Thanks! |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I'm going crazy from this; apologies in advance for not being able to provide a reproducible example -- my data set is quite large (hence the need for
cache
).I have the following code in a chunk:
When I run it from a fresh session, there's no problem. And when I load the data into memory, it runs fine, as well.
However, when the chunk used to create
DT
is created withcache = TRUE
, this chunk errors:gmedian
is an internaldata.table
function. That[.data.table
got dispatched suggests it's not the kind of problem that arises withdata.table
being loaded from binary where we need tosetDT
the object if it's added with, e.g.,load
. In fact if I add everything before the lastmedian
call in a chunk just before this one it runs completely fine:Which assures that
DT
is still being treated as adata.table
, thatGForce
is being dispatched correctly (them = median(w)
line dispatchesGForce
), up through that point.Further, if I replace the real
V1
withV1 = rnorm(.N)
to try and generate anonymized data to share here, the code does not reliably error (extra surprising since I assumed the error was related toh
being afactor
.That's as far as I've gotten... it certainly seems like a bug somewhere. This is a pain because the
cache
d chunk takes about 20 minutes to run -- a perfect use case for only running it on occasion if the underlying code changes. But as stands this isn't feasible.The text was updated successfully, but these errors were encountered: