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

data.table loaded from disk using load() causes unexpected error message when immediately used in intervalaverage function #49

Open
myoung3 opened this issue Sep 13, 2020 · 0 comments

Comments

@myoung3
Copy link
Member

myoung3 commented Sep 13, 2020

This was fixed in is.overlapping by replacing the walrus operator (:=) with a set function in savestate (the set function returns an intelligible error message whereas the walrus operator when applied to a data.table loaded from disk may silently fail to add the column).

there are more walrus operators in the intervalaverage function that either need to be replaced with calls to the set function or else you need to ensure that memory is allocated for the data.table before proceeding with the intervalaverage function.

It would be great to write a unit test for this but it's slightly involved since you need to write a file to disk and include it with the package.

@myoung3 myoung3 changed the title data.table loaded from disk using load() causes unexpected error message in intervalaverage function data.table loaded from disk using load() causes unexpected error message when immediately used in intervalaverage function Sep 13, 2020
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

No branches or pull requests

1 participant