[ https://issues.apache.org/jira/browse/SPARK-33313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-33313: ------------------------------------ Assignee: (was: Apache Spark) > R/run-tests.sh is not compatible with testthat >= 3.0 > ----------------------------------------------------- > > Key: SPARK-33313 > URL: https://issues.apache.org/jira/browse/SPARK-33313 > Project: Spark > Issue Type: Bug > Components: R, Tests > Affects Versions: 3.0.0, 3.1.0 > Reporter: Maciej Szymkiewicz > Priority: Major > > Currently we use {{testthat:::test_package_dir}} to run full SparkR tests > with {{testthat > 1.0}}. However, it has been dropped in {{testthat}} 3.0 > (https://github.com/r-lib/testthat/pull/1054). > Because of that AppVeyor tests fail with > {code:r} > Spark package found in SPARK_HOME: C:\projects\spark\bin\.. > Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : > object 'test_package_dir' not found > Calls: ::: -> get > Execution halted > {code} > It seems like we can use {{testthat::test_dir}} which, since {{testthat}} > 3.0, supports {{package}} parameter. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org