Skip to content

Commit

Permalink
force-include treesitter and treesitter.r if R >= 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
radbasa committed Aug 26, 2024
1 parent a2f5f15 commit ed579df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/dependencies.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ed579df

Please sign in to comment.