Description
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
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
It seems like we can use testthat::test_dir which, since testthat 3.0, supports package parameter.