-
-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Description
Downstream bug report: ropensci/pdftools#108
I think the bug is that DataFrame.push_back() gives an error when trying to add a column to a data frame with 0 rows:
DataFrame test (int n) {
IntegerVector foo(n);
CharacterVector bar(n);
CharacterVector baz(n);
Rcpp::DataFrame df = DataFrame::create(
_["foo"] = foo,
_["bar"] = bar
);
df.push_back(baz, "baz");
return df;
}
test(0);
# Error in FUN(X[[i]], ...) : is.data.frame(df) is not TRUE
# In addition: Warning messages:
# 1: In poppler_pdf_data(loadfile(pdf), font_info, opw, upw) :
# Column sizes are not equal in DataFrame::push_back, object degrading to List
Metadata
Metadata
Assignees
Labels
No labels