summaryrefslogtreecommitdiff
path: root/tests/testthat/setup.R
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testthat/setup.R')
-rw-r--r--tests/testthat/setup.R8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R
new file mode 100644
index 0000000..4232120
--- /dev/null
+++ b/tests/testthat/setup.R
@@ -0,0 +1,8 @@
+# Check if we can use RDKit
+skip_if_no_rdkit <- function() {
+ if (!chents:::rdkit_available) skip("RDKit is not available via reticulate")
+}
+
+# Check availability of BCPC and PubChem
+bcpc_up <- webchem::ping_service("bcpc")
+pc_up <- webchem::ping_service("pc")

Contact - Imprint