Skip to content

Commit df8beab

Browse files
committed
remove as.integer from signature
1 parent 3579fb2 commit df8beab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

R/data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ replace_dot_alias = function(e) {
147147
}
148148
}
149149

150-
"[.data.table" = function(x, i, j, by, keyby, with=TRUE, nomatch=NA, mult="all", roll=FALSE, rollends=if (roll=="nearest") c(TRUE,TRUE) else if (roll>=0.0) c(FALSE,TRUE) else c(TRUE,FALSE), which=FALSE, .SDcols, verbose=getOption("datatable.verbose"), allow.cartesian=getOption("datatable.allow.cartesian"), drop=NULL, on=NULL, env=NULL, showProgress=as.integer(getOption("datatable.showProgress", interactive())))
150+
"[.data.table" = function(x, i, j, by, keyby, with=TRUE, nomatch=NA, mult="all", roll=FALSE, rollends=if (roll=="nearest") c(TRUE,TRUE) else if (roll>=0.0) c(FALSE,TRUE) else c(TRUE,FALSE), which=FALSE, .SDcols, verbose=getOption("datatable.verbose"), allow.cartesian=getOption("datatable.allow.cartesian"), drop=NULL, on=NULL, env=NULL, showProgress=getOption("datatable.showProgress", interactive()))
151151
{
152152
# ..selfcount <<- ..selfcount+1 # in dev, we check no self calls, each of which doubles overhead, or could
153153
# test explicitly if the caller is [.data.table (even stronger test. TO DO.)

man/data.table.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data.table(\dots, keep.rownames=FALSE, check.names=FALSE, key=NULL, stringsAsFac
3636
verbose = getOption("datatable.verbose"), # default: FALSE
3737
allow.cartesian = getOption("datatable.allow.cartesian"), # default: FALSE
3838
drop = NULL, on = NULL, env = NULL,
39-
showProgress = as.integer(getOption("datatable.showProgress", interactive())))
39+
showProgress = getOption("datatable.showProgress", interactive()))
4040
}
4141
\arguments{
4242
\item{\dots}{ Just as \code{\dots} in \code{\link{data.frame}}. Usual recycling rules are applied to vectors of different lengths to create a list of equal length vectors.}

0 commit comments

Comments
 (0)