Skip to content

Commit 489fa04

Browse files
rename: date->idate
1 parent 73549b9 commit 489fa04

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

R/IDateTime.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ chooseOpsMethod.IDate = function(x, y, mx, my, cl, reverse) inherits(y, "Date")
130130
}
131131
ans = as.integer(unclass(e1) - unclass(e2))
132132
if (inherits(e2, "Date")) {
133-
if (!isTRUE(getOption("datatable.old.diff.date"))) {
133+
if (!isTRUE(getOption("datatable.old.diff.idate"))) {
134134
setattr(ans, "class", "difftime")
135135
setattr(ans, "units", "days")
136136
}

R/onLoad.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
datatable.use.index=TRUE, # global switch to address #1422
9494
datatable.prettyprint.char=NULL, # FR #1091
9595
datatable.old.matrix.autoname=TRUE, # #7145: how data.table(x=1, matrix(1)) is auto-named set to change
96-
datatable.old.diff.date=TRUE # whether <IDate>-<IDate> gets difftime class set to change
96+
datatable.old.diff.idate=TRUE # whether <IDate>-<IDate> gets difftime class set to change
9797
)
9898
opts = opts[!names(opts) %chin% names(options())]
9999
options(opts)

man/data.table-options.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
expressions like \code{data.table(x=1, cbind(1))} will be named. When \code{TRUE}, it will be named
115115
\code{V1}, otherwise it will be named \code{V2}.
116116
}
117-
\item{\code{datatable.old.diff.date}}{Logical, default \code{TRUE}. Governs whether \code{t1 - t2},
117+
\item{\code{datatable.old.diff.idate}}{Logical, default \code{TRUE}. Governs whether \code{t1 - t2},
118118
where \code{t1} and \code{t2} are both class \code{IDate}, gains the S3 class \code{difftime}.
119119
When \code{TRUE}, this class is assigned (with \code{units="days"}).
120120
}

0 commit comments

Comments
 (0)