View source: R/f_quality_assurance.R
| setupPackageTests | R Documentation |
This function sets up the package tests by downloading the test files and copying them to the rpact installation directory.
setupPackageTests(token, secret)
token |
A character string representing the token for authentication. |
secret |
A character string representing the secret for authentication. |
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.
The function returns TRUE if all test files are downloaded and copied successfully to the rpact installation directory; otherwise, it returns FALSE.
For more information, please visit: https://www.rpact.org/vignettes/utilities/rpact_installation_qualification/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.