export(set2key, set2keyv, key2) # deprecated with helpful error; remove after May 2019 (see #3399)
export(as.xts.data.table)          # this on some configuration happens to fail as.xts dispatch to dt method #3286

# exported for historical reasons -- if reshape2 is higher on search path,
# dcast(DT) will not dispatch since reshape2::dcast is not generic. So users
# and many packges on CRAN call dcast.data.table() and/or melt.data.table() directly. See #3082.

# this version number must be the same as in .onLoad
# fix in R in Sep 2019 (#3948) makes c|rbind S3 dispatch work; see FAQ 2.24.
# if we register these (new in v1.12.6) methods always though, the previous workaround no longer works in R<4.0.0. Hence only register in R>=4.0.0.
#  # and if we export but don't register in R < 4.0.0 we get this note:
#  # > Found the following apparent S3 methods exported but not registered:
#  # > cbind.data.table rbind.data.table
#  # A revdep using rbind.data.frame() directly before (which data.table changed in base) should change to rbind() generic and that should work
#  # in all combinations of R before/after 4.0.0 and data.table before/after 1.12.6, so long as data.table is installed using the same major
#  # version of R (and that is checked in .onLoad with error if not).
export(.rbind.data.table) # continue to export for now because it has been exported in the past so it may be depended on

S3method(as.Date, IDate)   # note that base::as.Date is masked by zoo::as.Date, #1500 #4777

export(data.table, tables, setkey, key, "key<-", J, CJ, SJ)

## utility functions for testing with test_that

export(data.table, tables, setkey, key, "key<-", haskey, J, CJ, SJ)

# .Internal dispatch in the base functions prevents both cbind(DT,DF) and cbind(DT,vector)
# from working using S3 methods cbind.data.table and cbind.data.frame.
# S3method(cbind, data.table)  # see comment above.

export(data.table, tables, setkey, key, "key<-", haskey, J, CJ, SJ, copy)

export(data.table, tables, setkey, setkeyv, key, "key<-", haskey, J, CJ, SJ, copy)