Skip to content

Commit

Permalink
Add ellipsis to round() in docs and .GenericArgsEnv to be more consis…
Browse files Browse the repository at this point in the history
…tent

with round.POSIXt.


git-svn-id: https://svn.r-project.org/R/trunk@84704 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
luke committed Jul 18, 2023
1 parent 075a2c6 commit 0252cdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library/base/R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ assign("log", function(x, base=exp(1)) UseMethod("log"),
assign("names<-", function(x, value) UseMethod("names<-"),
envir = .GenericArgsEnv)
assign("rep", function(x, ...) UseMethod("rep"), envir = .GenericArgsEnv)
assign("round", function(x, digits=0) UseMethod("round"),
assign("round", function(x, digits = 0, ...) UseMethod("round"),

This comment has been minimized.

Copy link
@MichaelChirico

MichaelChirico Mar 27, 2024

Collaborator

@ltierney if this is planned for the upcoming release, I think it warrants a NEWS item -- here's a "recent" r-devel thread requesting this exact thing:

https://stat.ethz.ch/pipermail/r-devel/2021-January/080427.html

envir = .GenericArgsEnv)
assign("seq.int", function(from, to, by, length.out, along.with, ...)
UseMethod("seq.int"), envir = .GenericArgsEnv)
Expand Down
2 changes: 1 addition & 1 deletion src/library/base/man/Round.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ceiling(x)
floor(x)
trunc(x, \dots)

round(x, digits = 0)
round(x, digits = 0, \dots)
signif(x, digits = 6)
}
\description{
Expand Down

0 comments on commit 0252cdb

Please sign in to comment.