Bug 17340 - example(prcomp): partial argument matching [PATCH]
Summary: example(prcomp): partial argument matching [PATCH]
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Documentation (show other bugs)
Version: R-devel (trunk)
Hardware: All All
: P5 trivial
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2017-09-17 16:55 UTC by Henrik Bengtsson
Modified: 2017-09-17 16:55 UTC (History)
0 users

See Also:


Attachments
Fix partial argument matching (1.46 KB, patch)
2017-09-17 16:55 UTC, Henrik Bengtsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Bengtsson 2017-09-17 16:55:39 UTC
Created attachment 2292 [details]
Fix partial argument matching

# ISSUE
src/library/stats/man/prcomp.Rd uses several partial arguments in calls:

> options(warnPartialMatchArgs = TRUE)
> example("prcomp", package = "stats")
[...]
Warning messages:
1: In all.equal.numeric(cov(Z), S, tol = 0.08) :
  partial argument match of 'tol' to 'tolerance'
2: In all.equal.numeric(pz3$sdev, pZ$sdev, tol = 1e-15) :
  partial argument match of 'tol' to 'tolerance'
3: In prcomp.default(USArrests, scale = TRUE) :
  partial argument match of 'scale' to 'scale.'
4: In prcomp.default(x, ...) :
  partial argument match of 'scale' to 'scale.'
5: In prcomp.default(USArrests, scale = TRUE) :
  partial argument match of 'scale' to 'scale.'
6: In prcomp.default(USArrests, scale = TRUE) :
  partial argument match of 'scale' to 'scale.'


# PATCH
Attach patch fixes those and has been validated.