Current version: 0.1.9.5
read.onlyattribute for data.table
dtqclass to store dtq call and metadata
stopifnot(getRversion() >= "3.2.0") install.packages("dtq", repos=c("https://jangorecki.gitlab.io/dtq", "https://cran.rstudio.com"))
library(data.table) library(dtq) DT <- data.table(a = 1:10, b = letters[1:5]) LKP <- data.table(b = letters[1:5], ratio = rnorm(5), key = "b") DT2 <- DT[, .(a = sum(a)), b ][a > median(a), .(b, a, adj_a = a * 1.1)] LKP[DT2, .(b, a, adj2_a = adj_a * ratio)] dtl()
Control logging by global options:
dtq.log.excludecharacter, exclude queries from provided packages
dtq.log.includecharacter, log queries only from provided packages
dtq.log.include option is set the logging is active for all data.table queries excluding calls from
Otherwise only queries from provided packages will be logged, still excluding packages from
While using include option character
R_GlobalEnv can be provided to log also calls from global env.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.