This function sets up the package tests by downloading the test files and copying them to the rpact installation directory.
setupPackageTests(token, secret)The function returns TRUE if all test files are downloaded and copied successfully to the rpact installation directory; otherwise, it returns FALSE.
The function first checks if the rpact package directory and its tests and testthat subdirectories exist.
If they do not exist, it stops with an error. It then downloads the test files to a temporary directory and copies them
to the tests directory of the rpact package. If all test files are copied successfully, it removes the default test file.
For more information, please visit: https://www.rpact.org/vignettes/utilities/rpact_installation_qualification/