Skip to content

Warning: partial argument match of 'result' to 'results' #778

Description

@beerda

The full warning is:

Warning in h$complete(pb, .envir = caller, result = "done") :
  partial argument match of 'result' to 'results'

It is perhaps related to progress-server.R, where the complete function is defined as:

complete = function(bar, .envir, results) {
    if (!is.null(bar$rstudio_id)) {
      rstudioapi::jobRemove(bar$rstudio_id)
    }
  }

However, in progress-c.R and progress-client.R, there is:

h$complete(pb, .envir = .envir, result = result)

Activity

  1. LiNk-NY commented on Mar 17, 2026

    @LiNk-NY

    I am also getting this warning. It looks like there are two instances of results :

    cli/R/progress-server.R

    Lines 309 to 313 in 3dd94c0

    complete = function(bar, .envir, results) {
    if (!is.null(bar$rstudio_id)) {
    rstudioapi::jobRemove(bar$rstudio_id)
    }
    },

    cli/R/progress-server.R

    Lines 371 to 380 in 3dd94c0

    complete = function(bar, .envir, results) {
    if (!is.null(bar$shiny_progress)) {
    bar$shiny_progress$set(
    value = bar$current,
    detail = shiny_detail(bar, .envir)
    )
    bar$shiny_progress$close()
    }
    bar$shiny_progress <- NULL
    },

    Note that you would need warnPartialMatchArgs = TRUE in the ~/.Rprofile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions