Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/progress_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

static SEXP global_pb = R_NilValue;

static const Rcpp::List pb_config =
Rcpp::List::create(
Rcpp::Named("format_done") = "{cli::col_green(cli::symbol$tick)} "
"Done ({cli::pb_elapsed})",
Rcpp::Named("clear") = false);

int CPL_STDCALL GDALTermProgressR(double dfComplete,
CPL_UNUSED const char *pszMessage,
CPL_UNUSED void *pProgressArg)
Expand All @@ -13,7 +19,7 @@ int CPL_STDCALL GDALTermProgressR(double dfComplete,
cli_progress_done(global_pb);

R_ReleaseObject(global_pb);
global_pb = cli_progress_bar(1, NULL);
global_pb = cli_progress_bar(1, pb_config);
R_PreserveObject(global_pb);
}
else if (dfComplete < 1) {
Expand Down
Loading