From ed579df729cf15af9cd963ebd0a2a95218d80eea Mon Sep 17 00:00:00 2001 From: Rodrigo Basa Date: Mon, 26 Aug 2024 17:51:54 +0200 Subject: [PATCH] force-include treesitter and treesitter.r if R >= 4.3 --- R/dependencies.R | 3 +++ 1 file changed, 3 insertions(+) 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(