@@ -450,9 +450,11 @@ SEXP dogroups(SEXP dt, SEXP dtcols, SEXP groups, SEXP grpcols, SEXP jiscols, SEX
450450 double avgTimePerGroup = (now - startTime )/(i + 1 );
451451 int ETA = (int )(avgTimePerGroup * (ngrp - i - 1 ));
452452 if (hasPrinted || ETA >= 0 ) {
453+ // # nocov start. Requires long-running test case
453454 if (verbose && !hasPrinted ) Rprintf (_ ("\n" ));
454455 Rprintf ("\r" ); // # notranslate. \r is not internationalizable
455456 Rprintf (_ ("Processed %d groups out of %d. %.0f%% done. Time elapsed: %ds. ETA: %ds." ), i + 1 , ngrp , 100.0 * (i + 1 )/ngrp , (int )(now - startTime ), ETA );
457+ // # nocov end
456458 }
457459 nextTime = now + 1 ;
458460 hasPrinted = true;
@@ -466,9 +468,11 @@ SEXP dogroups(SEXP dt, SEXP dtcols, SEXP groups, SEXP grpcols, SEXP jiscols, SEX
466468 else UNPROTECT (1 ); // the jval. Don't want them to build up. The first jval can stay protected till the end ok.
467469 }
468470 if (showProgress && hasPrinted ) {
471+ // # nocov start. Requires long-running test case
469472 Rprintf ("\r" ); // # notranslate. \r is not internationalizable
470473 Rprintf (_ ("Processed %d groups out of %d. %.0f%% done. Time elapsed: %ds. ETA: %ds." ), ngrp , ngrp , 100.0 , (int )(wallclock ()- startTime ), 0 );
471474 Rprintf ("\n" ); // # notranslate. separated so this & the earlier message are identical for translation purposes.
475+ // # nocov end
472476 }
473477 if (isNull (lhs ) && ans != NULL ) {
474478 if (ansloc < LENGTH (VECTOR_ELT (ans ,0 ))) {
0 commit comments