From 436d5e06dd5703bdfcf70449b072144c1c32e8bd Mon Sep 17 00:00:00 2001 From: Mark Hamilton Date: Tue, 22 Jun 2021 18:49:58 -0400 Subject: [PATCH] WIP --- project/CodegenPlugin.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/project/CodegenPlugin.scala b/project/CodegenPlugin.scala index db5bc6c18b..df113d2b31 100644 --- a/project/CodegenPlugin.scala +++ b/project/CodegenPlugin.scala @@ -152,9 +152,11 @@ object CodegenPlugin extends AutoPlugin { rCmd(activateCondaEnv.value, Seq("R", "CMD", "INSTALL", "--no-multiarch", "--with-keep.source", genPackageNamespace.value), rSrcDir.getParentFile, libPath) - val testRunner = join("tools", "tests", "run_r_tests.R").getAbsolutePath - rCmd(activateCondaEnv.value, - Seq("Rscript", testRunner), rSrcDir, libPath) + val testRunner = join("tools", "tests", "run_r_tests.R") + if (testRunner.exists()){ + rCmd(activateCondaEnv.value, + Seq("Rscript", testRunner.getAbsolutePath), rSrcDir, libPath) + } }, publishR := { codegen.value