From 8e74a80cca63f9950160c6d6224a57a66b14c22e Mon Sep 17 00:00:00 2001 From: Rodrigo Basa Date: Thu, 22 Aug 2024 16:48:10 +0800 Subject: [PATCH] install treesitter in lint-r test --- tests/e2e/test-lint-r.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/test-lint-r.R b/tests/e2e/test-lint-r.R index da3ff49a..4b2cc137 100644 --- a/tests/e2e/test-lint-r.R +++ b/tests/e2e/test-lint-r.R @@ -1,3 +1,7 @@ +if (getRversion() >= 4.3) { + install.packages(c("treesitter", "treesitter.r")) +} + rhino::lint_r() # Create bad scripts and test if formatting returns the expected result test_file_path <- fs::path("app", "logic", "bad-style.R")