From fa0a81b4d41bd54497c3a2d0a7545920ca447266 Mon Sep 17 00:00:00 2001 From: Rodrigo Basa Date: Tue, 27 Aug 2024 13:23:12 +0200 Subject: [PATCH] CI does not like getRversion() --- R/dependencies.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/dependencies.R b/R/dependencies.R index ab4a1f7c..c802037f 100644 --- a/R/dependencies.R +++ b/R/dependencies.R @@ -12,7 +12,7 @@ read_dependencies <- function() { } write_dependencies <- function(deps) { - if (getRversion() >= 4.3) { + if (as.numeric(R.Version()$major) >= 4 && as.numeric(R.Version()$minor) >= 3.0) { deps <- c(deps, "treesitter", "treesitter.r") } deps <- sort(unique(c("rhino", deps))) # Rhino is always needed as a dependency.