tests/testthat/helper-tbparse.R

skip_if_tbparse_not_available <- function() {
  skip_if(inherits(try(reticulate::import("tbparse"), silent = TRUE), "try-error"))
}

if (inherits(try(reticulate::import("tbparse"), silent = TRUE), "try-error")) {
  tbparse <- NULL
} else {
  tbparse <- reticulate::import("tbparse")
}

Try the tfevents package in your browser

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

tfevents documentation built on June 27, 2024, 5:10 p.m.