diff --git a/R/dependencies.R b/R/dependencies.R index 151d1c06..ab4a1f7c 100644 --- a/R/dependencies.R +++ b/R/dependencies.R @@ -12,6 +12,9 @@ read_dependencies <- function() { } write_dependencies <- function(deps) { + if (getRversion() >= 4.3) { + deps <- c(deps, "treesitter", "treesitter.r") + } deps <- sort(unique(c("rhino", deps))) # Rhino is always needed as a dependency. deps <- purrr::map_chr(deps, function(name) glue::glue("library({name})")) deps <- c(