R/zzz.R

Defines functions .onLoad

# nocov start
.onLoad <- function(...) {
  vctrs::s3_register("pillar::pillar_shaft", "hms")

  if (utils::packageVersion("vctrs") <= "0.1.0") {
    vec_default_cast <<- vec_default_cast_old
  } else {
    rm("vec_default_cast", inherits = TRUE)
  }

  invisible()
}
# nocov end

Try the hms package in your browser

Any scripts or data that you put into this service are public.

hms documentation built on March 31, 2023, 11:09 p.m.