R/zzz.R

Defines functions .onLoad

# nocov start

.onLoad <- function(libname, pkgname) {
  if (Sys.getenv("DEVTOOLS_LOAD") == "treesitter.r") {
    # Support syncing with `load_all()`
    path <- file.path(".", "bootstrap.R")
    path <- normalizePath(path, mustWork = TRUE)
    source(path)
  }
}

# nocov end

Try the treesitter.r package in your browser

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

treesitter.r documentation built on Sept. 12, 2024, 7:06 a.m.