-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathzzz.R
25 lines (21 loc) · 830 Bytes
/
zzz.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# nocov start
.onLoad <- function(...) {
s3_register("testthat::compare", "glue")
s3_register("waldo::compare_proxy", "glue")
s3_register("vctrs::vec_ptype2", "glue.glue")
s3_register("vctrs::vec_ptype2", "character.glue")
s3_register("vctrs::vec_ptype2", "glue.character")
s3_register("vctrs::vec_cast", "glue.glue")
s3_register("vctrs::vec_cast", "character.glue")
s3_register("vctrs::vec_cast", "glue.character")
if (isNamespaceLoaded("knitr") &&
"knit_engines" %in% getNamespaceExports("knitr")) {
knitr::knit_engines$set(glue = eng_glue, glue_sql = eng_glue_sql, gluesql = eng_glue_sql)
} else {
setHook(packageEvent("knitr", "onLoad"), function(...) {
knitr::knit_engines$set(glue = eng_glue, glue_sql = eng_glue_sql, gluesql = eng_glue_sql)
})
}
invisible()
}
#nocov end