r-lib / cpp11

cpp11 helps you to interact with R objects using C++ code.
https://cpp11.r-lib.org/
Other
193 stars 46 forks source link

Allow passing number of rows from outside #272

Open krlmlr opened 2 years ago

krlmlr commented 2 years ago

The internal calc_nrow() doesn't (want to) implement the full vctrs logic, this offers a way for callers to construct a valid data frame in all corner cases.

krlmlr commented 1 year ago

The test failures now seem consistent with those seen on the main branch.