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

Replace DataFrame with List. #358

Merged
merged 1 commit into from
Jul 9, 2020
Merged

Replace DataFrame with List. #358

merged 1 commit into from
Jul 9, 2020

Conversation

waltersom
Copy link
Contributor

@waltersom waltersom commented Jul 9, 2020

This fixes #357.

This is necessary, as the column length may change, resulting in an object that is not a valid DataFrame. The conflicts with RcppCore/Rcpp#1099 where the object will remain a DataFrame.

The underlying cause is that previously, calling push_back or push_front on a DataFrame caused the DataFrame to revert to a list, but it should remain a DataFrame.
However, there are some occasions (caught by your tests, thanks!) where proxy becomes invalid for a DataFrame (to do with column lengths). It remains a valid List.

For the purposes of proxy, a List is sufficient.

This is necessary, as the column length may change, resulting in an object that is not a valid DataFrame. The conflicts with RcppCore/Rcpp#1099 where the object will remain a DataFrame.

For the purposes of `proxy`, a List is sufficient.
@Jean-Romain
Copy link
Collaborator

This seems legit. And you are right I used DataFrame only as a convenience. It is perfectly valid to use a list.

@Jean-Romain Jean-Romain merged commit 5741a7a into r-lidar:devel Jul 9, 2020
@waltersom waltersom deleted the replace-dataframe-with-list branch July 12, 2020 21:00
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.

2 participants