tests/testthat.R

library('testthat')
library('webchem')

# All of the tests rely on the API existing and behaving as documented. However,
# the API occasionally falls over or stops working which lets to errors on CRAN.
# Because we use CI we will hear about any test failures as soon as they
# happen. So, let's skip all tests on CRAN:
#
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
  test_check("webchem")
}

Try the webchem package in your browser

Any scripts or data that you put into this service are public.

webchem documentation built on July 9, 2023, 5:30 p.m.