Debian Codegraph @

NAMESPACE

raw
1 useDynLib("data_table", .registration=TRUE)
2
3 ## For S4-ization
4 importFrom(methods, "S3Part<-", slotNames)
5 exportClasses(data.table, IDate, ITime)
6 ##
7
8 export(data.table, tables, setkey, setkeyv, key, haskey, CJ, SJ, copy)
9 export(rowwiseDT)
10 export(setindex, setindexv, indices)
11 export(as.data.table,is.data.table,test.data.table)
12 export(last,first,like,"%like%","%ilike%","%flike%","%plike%",between,"%between%",inrange,"%inrange%", "%notin%")
13 export(timetaken)
14 export(truelength, setalloccol, alloc.col, ":=", let)
15 export(setattr, setnames, setcolorder, set, setDT, setDF)
16 export(setorder, setorderv)
17 export(setNumericRounding, getNumericRounding)
18 export(chmatch, "%chin%", chorder, chgroup)
19 export(rbindlist)
20 export(fifelse)
21 export(fcase)
22 export(fread)
23 export(fwrite)
24 export(foverlaps)
25 export(shift)
26 export(transpose)
27 export(tstrsplit)
28 export(frank)
29 export(frankv)
30 export(address)
31 export(.SD,.N,.I,.GRP,.NGRP,.BY,.EACHI, measure, measurev, patterns)
32 # TODO(#6197): Export these.
33 # export(., J)
34 export(rleid)
35 export(rleidv)
36 export(rowid)
37 export(rowidv)
38 export(uniqueN)
39 export(setDTthreads, getDTthreads)
40 # set operators
41 export(fintersect)
42 export(fsetdiff)
43 export(funion)
44 export(fsetequal)
45 S3method(all.equal, data.table)
46 export(shouldPrint)
47 export(fsort) # experimental parallel sort for vector type double only, currently
48 # grouping sets
49 export(groupingsets)
50 export(cube)
51 export(rollup)
52 S3method(groupingsets, data.table)
53 S3method(cube, data.table)
54 S3method(rollup, data.table)
55 export(frollmean)
56 export(frollsum)
57 export(frollmax)
58 export(frollmin)
59 export(frollprod)
60 export(frollmedian)
61 export(frollvar)
62 export(frollsd)
63 export(frollapply)
64 export(frolladapt)
65 export(nafill)
66 export(setnafill)
67 export(.Last.updated)
68 export(fcoalesce)
69 export(mergelist, setmergelist)
70 export(cbindlist, setcbindlist)
71 export(substitute2)
72 #export(DT) # mtcars |> DT(i,j,by) #4872 #5472
73 export(fctr)
74
75 S3method("[", data.table)
76 S3method("[<-", data.table)
77 # S3method("[[", data.table)
78 # S3method("[[<-", data.table)
79 S3method("$<-", data.table)
80 S3method(print, data.table)
81 S3method(as.data.table, data.table)
82 S3method(as.data.table, data.frame)
83 S3method(as.data.table, array)
84 S3method(as.data.table, matrix)
85 S3method(as.data.table, list)
86 S3method(as.data.table, integer)
87 S3method(as.data.table, numeric)
88 S3method(as.data.table, character)
89 S3method(as.data.table, logical)
90 S3method(as.data.table, factor)
91 S3method(as.data.table, ordered)
92 S3method(as.data.table, Date)
93 S3method(as.data.table, ITime)
94 S3method(as.data.table, table)
95 S3method(as.data.table, default)
96 S3method(as.data.frame, data.table)
97 S3method(as.list, data.table)
98 S3method(as.matrix, data.table)
99 if (getRversion() >= "4.0.0") {
100 # this version number must be the same as in .onLoad
101 # fix in R in Sep 2019 (#3948) makes c|rbind S3 dispatch work; see FAQ 2.24.
102 # 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.
103 S3method(cbind, data.table)
104 S3method(rbind, data.table)
105 } else {
106 # and if we export but don't register in R < 4.0.0 we get this note:
107 # > Found the following apparent S3 methods exported but not registered:
108 # > cbind.data.table rbind.data.table
109 # in addition to errors in tests 324, 326, 414.1, 414.2, 442, 445, 451
110 # export(cbind.data.table)
111 # export(rbind.data.table)
112 # A revdep using rbind.data.frame() directly before (which data.table changed in base) should change to rbind() generic and that should work
113 # 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
114 # version of R (and that is checked in .onLoad with error if not).
115 export(.rbind.data.table) # only export in R<4.0.0 where it is still used; R-devel now detects it is missing doc, #5600
116 }
117 if (getRversion() >= "3.6.0") S3method(knitr::knit_print, data.table) # else manual delayed registration from the onLoad hook
118 S3method(dim, data.table)
119 S3method(dimnames, data.table)
120 S3method("dimnames<-", data.table)
121 S3method("names<-", data.table)
122 S3method("colnames<-", data.table)
123 S3method(duplicated, data.table)
124 S3method(unique, data.table)
125 S3method(merge, data.table)
126 export(merge.data.table) #2618
127 S3method(subset, data.table)
128 S3method(transform, data.table)
129 S3method(within, data.table)
130 S3method(is.na, data.table)
131 S3method(format, data.table)
132 S3method(Ops, data.table)
133 S3method(anyDuplicated, data.table)
134 S3method(split, data.table)
135
136 export(dcast, melt)
137 S3method(dcast, data.table)
138 S3method(melt, data.table)
139 S3method(melt, default)
140
141 # exported for historical reasons -- if reshape2 is higher on search path,
142 # dcast(DT) will not dispatch since reshape2::dcast is not generic. So users
143 # and many packages on CRAN call dcast.data.table() and/or melt.data.table() directly. See #3082.
144 export(melt.data.table, dcast.data.table)
145
146 importFrom(utils, capture.output, contrib.url, download.file, flush.console, getS3method, head, packageVersion, tail, untar, unzip)
147 export(update_dev_pkg)
148 S3method(tail, data.table)
149 S3method(head, data.table)
150 importFrom(stats, as.formula, na.omit, setNames, terms)
151 S3method(na.omit, data.table)
152
153 S3method(as.data.table, xts)
154 if (getRversion() >= "3.6.0") {
155 export(as.xts.data.table) # fails in R-devel if not exported too, but I don't understand why
156 S3method(xts::as.xts, data.table) # delayed registration (new in R-devel) -- shouldn't this also export as.xts.data.table for us?
157 } else {
158 export(as.xts.data.table) # this on some configuration happens to fail as.xts dispatch to dt method #3286
159 }
160
161 # IDateTime support:
162 export(as.IDate,as.ITime,IDateTime)
163 export(second,minute,hour,yday,wday,mday,week,isoweek,isoyear,month,quarter,year,yearmon,yearqtr)
164
165 if (getRversion() >= "4.3.0") S3method(chooseOpsMethod, IDate)
166 S3method("[", ITime)
167 S3method("+", IDate)
168 S3method("-", IDate)
169 S3method(as.character, ITime)
170 S3method(as.data.frame, ITime)
171 S3method(as.Date, IDate) # note that base::as.Date is masked by zoo::as.Date, #1500 #4777
172 S3method(as.IDate, Date)
173 S3method(as.IDate, POSIXct)
174 S3method(as.IDate, default)
175 S3method(as.IDate, numeric)
176 S3method(as.IDate, IDate)
177 S3method(as.ITime, character)
178 S3method(as.ITime, default)
179 S3method(as.ITime, POSIXct)
180 S3method(as.ITime, numeric)
181 S3method(as.ITime, POSIXlt)
182 S3method(as.ITime, times)
183 S3method(as.list, IDate)
184 S3method(as.POSIXct, IDate)
185 S3method(as.POSIXct, ITime)
186 S3method(as.POSIXlt, ITime)
187 S3method(c, IDate)
188 S3method(c, ITime)
189 S3method(cut, IDate)
190 S3method(format, ITime)
191 S3method(IDateTime, default)
192 S3method(mean, IDate)
193 S3method(mean, ITime)
194 S3method(print, ITime)
195 S3method(rep, IDate)
196 S3method(rep, ITime)
197 S3method(round, IDate)
198 S3method(round, ITime)
199 S3method(trunc, ITime)
200 S3method(seq, IDate)
201 S3method(seq, ITime)
202 S3method(unique, IDate)
203 S3method(unique, ITime)
204 S3method('[<-', IDate)
205 S3method('min', IDate)
206 S3method('max', IDate)
207 S3method(edit, data.table)
208
209 # generics to support custom column formatters
210 export(format_col)
211 S3method(format_col, default)
212 S3method(format_col, POSIXct)
213 S3method(format_col, expression)
214 export(format_list_item)
215 S3method(format_list_item, default)
216 S3method(format_list_item, data.frame)
217
218 export(fdroplevels, setdroplevels)
219 S3method(droplevels, data.table)
220 export(frev)
221 export(.selfref.ok)
222
223 # sort_by added in R 4.4.0, #6662, https://stat.ethz.ch/pipermail/r-announce/2024/000701.html
224 if (getRversion() >= "4.4.0") S3method(sort_by, data.table)