tests/testthat.R

library(testthat)
library(pyMTurkR)

test_that("All tests", {
  skip_if_not(
    is.null(tryCatch({reticulate:::ensure_python_initialized()}, error=function(e) T)),
    "Skipping tests as we cannot get reticulate to recognize our python setup"
  )
  test_dir("testthat")
})

Try the pyMTurkR package in your browser

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

pyMTurkR documentation built on Nov. 25, 2021, 9:07 a.m.