You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// here we proceed as if fill=true for brevity (accounting for dups is tricky) and then catch any missings after this branch
72
72
// when use.names==NA we also proceed here as if use.names was TRUE to save new code and then check afterwards the map is 1:ncol for every item
73
73
// first find number of unique column names present; i.e. length(unique(unlist(lapply(l,names))))
74
-
SEXP*uniq=malloc(sizeof(*uniq) *upperBoundUniqueNames); // upperBoundUniqueNames was initialized with 1 to ensure this is defined (otherwise 0 when no item has names)
75
-
if (!uniq)
76
-
error(_("Failed to allocate upper bound of %"PRId64" unique column names [sum(lapply(l,ncol))]"), (int64_t)upperBoundUniqueNames); // # nocov
int*dupLink=malloc(sizeof(*dupLink) *ncol); // if a colname has occurred before (a dup) links from the 1st to the 2nd time in the final result, 2nd to 3rd, etc
0 commit comments