From 0c67e612bdaed7d0f07ca16442ceb53f7cd47b20 Mon Sep 17 00:00:00 2001 From: mattdowle Date: Tue, 10 Sep 2019 12:57:10 -0700 Subject: [PATCH] moved key= into ... of as.data.table generic --- R/as.data.table.R | 3 ++- man/as.data.table.Rd | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/R/as.data.table.R b/R/as.data.table.R index ba5785d9f5..aeef3ab1a9 100644 --- a/R/as.data.table.R +++ b/R/as.data.table.R @@ -1,4 +1,5 @@ -as.data.table = function(x, keep.rownames=FALSE, key=NULL, ...) +as.data.table = function(x, keep.rownames=FALSE, ...) +# cannot add new args before dots otherwise revdeps which implement their methods will start to warn; e.g. riskRegression in #3581 { if (is.null(x)) return(null.data.table()) diff --git a/man/as.data.table.Rd b/man/as.data.table.Rd index fd776874ab..745db4249e 100644 --- a/man/as.data.table.Rd +++ b/man/as.data.table.Rd @@ -19,7 +19,7 @@ Functions to check if an object is \code{data.table}, or coerce it if possible. } \usage{ -as.data.table(x, keep.rownames=FALSE, key=NULL, \dots) +as.data.table(x, keep.rownames=FALSE, \dots) \method{as.data.table}{data.table}(x, \dots)