Skip to content

Hide "Loading metadata database" progress bar using pkg.show_progress option #95

@pawelru

Description

@pawelru

Even if it's not documented - many packages make use of pkg.show_progress option to enable/disable progress bars. This package is no exception and it is used e.g. here:

if (isTRUE(getOption("pkg.show_progress", FALSE))) {

But unfortunately not everywhere and there is one little guy that still does not use it:

pkgcache/R/metadata-cache.R

Lines 607 to 615 in 42e8249

cmc__load_replica_rds <- function(self, private, max_age) {
"!!DEBUG Load replica RDS?"
rds <- private$get_cache_files("replica")$rds
if (!file.exists(rds)) stop("No replica RDS file in cache")
time <- file_get_time(rds)
if (Sys.time() - time > max_age) stop("Replica RDS cache file outdated")
sts <- cli_process_start("Loading metadata database")

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions