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

Open
#778 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
r
Domain
cli

Research direction

Read progress-server.R alongside the complete calls in progress-c.R and progress-client.R, comparing the parameter name with the supplied argument. Confirm the intended naming and verify that the partial argument match warning no longer appears while completion still works.

Written by the indexing model from the issue text.

Description

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)
Dominant language
R
Stars
726
Forks
94
Avg merge
3h 35m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/cli

All issues in r-lib/cli

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.