| Title: | RStudio/Workbench User Acceptance Tests |
|---|---|
| Description: | Testing whether data scientists can do what they expect in Posit Workbench. |
| Authors: | Jumping Rivers [aut, cre] |
| Maintainer: | Jumping Rivers <[email protected]> |
| License: | file LICENSE |
| Version: | 0.6.9 |
| Built: | 2026-10-05 10:53:44 UTC |
| Source: | https://github.com/jumpingrivers/audit.workbench |
This functions runs all UAT tests. To skip tests, set check to 'no' in the config yaml file. See 'create_config()'
check(server, dir = ".", debug_level = 0:2)check(server, dir = ".", debug_level = 0:2)
server |
Posit Workbench server. If NULL, use the ENV variable WORKBENCH_SERVER |
dir |
directory location of the the config file |
debug_level |
Integer, 0 to 2. |
Debug level description * 0: clean-up all files; suppress all noise * 1: clean-up all files, but display build steps * 2: No clean-up and display build steps
Check classes
audit.base::logger -> audit.base::base_check -> check_bioconductor
check_bioconductor$check()Checks that Bioconductor URLs are accessible
check_bioconductor$check(debug_level)
debug_levelSee check() for details
check_bioconductor$clone()The objects of this class are cloneable with this method.
check_bioconductor$clone(deep = FALSE)
deepWhether to make a deep clone.
Checks that core R packages are pre-installed as described in https://docs.posit.co/ide/server-pro/reference/r_package_dependencies.html
audit.base::logger -> audit.base::base_check -> check_core_r_pkgs
check_core_r_pkgs$check()Test for core R packages
check_core_r_pkgs$check(debug_level)
debug_levelSee check() for details
check_core_r_pkgs$clone()The objects of this class are cloneable with this method.
check_core_r_pkgs$clone(deep = FALSE)
deepWhether to make a deep clone.
Check classes
audit.base::logger -> audit.base::base_check -> check_cran
check_cran$check()Installs a package from CRAN
check_cran$check(debug_level)
debug_levelSee check() for details
check_cran$clone()The objects of this class are cloneable with this method.
check_cran$clone(deep = FALSE)
deepWhether to make a deep clone.
Check classes
audit.base::logger -> audit.base::base_check -> check_file_permissions
check_file_permissions$check()Check
check_file_permissions$check(debug_level)
debug_levelSee check() for details
check_file_permissions$clone()The objects of this class are cloneable with this method.
check_file_permissions$clone(deep = FALSE)
deepWhether to make a deep clone.
Check classes
audit.base::logger -> audit.base::base_check -> check_git_cloning
check_git_cloning$check()Checking that we can access and clone from github.com
check_git_cloning$check(debug_level)
debug_levelSee 'check()' for details
check_git_cloning$clone()The objects of this class are cloneable with this method.
check_git_cloning$clone(deep = FALSE)
deepWhether to make a deep clone.
Check classes
audit.base::logger -> audit.base::base_check -> check_github
check_github$check()Checks installs a package from github#
check_github$check(debug_level)
debug_levelSee check() for details
check_github$clone()The objects of this class are cloneable with this method.
check_github$clone(deep = FALSE)
deepWhether to make a deep clone.
Check classes
audit.base::logger -> audit.base::base_check -> check_python
check_python$check()Checks python pip install
check_python$check(debug_level)
debug_levelSee check() for details
check_python$clone()The objects of this class are cloneable with this method.
check_python$clone(deep = FALSE)
deepWhether to make a deep clone.
Check classes
audit.base::logger -> audit.base::base_check -> check_python
check_python$check()Checks python can be used via reticulate
check_python$check(debug_level)
debug_levelSee check() for details
check_python$clone()The objects of this class are cloneable with this method.
check_python$clone(deep = FALSE)
deepWhether to make a deep clone.
This function creates an example config. By default all tests are TRUE. Some RSC servers intentionally won't have some features implemented.
create_config(dir = ".", default = TRUE, type = c("merge", "force", "error"))create_config(dir = ".", default = TRUE, type = c("merge", "force", "error"))
dir |
Directory of the config file |
default |
Default value for if a test should run (logical) |
type |
Merge type, see details |
If a test is missing from the config file, it is assume to be TRUE. Therefore, the config file can be quite short and just list exceptions. If the config file is missing, then all tests are carried out.
When merging configs, we either * merge the new with existing * force: overwrite existing file * error: if a config file exists, raise an error