tests/testthat.R

# This file is part of the standard setup for testthat.
# It is recommended that you do not modify it.
#
# Where should you do additional test configuration?
# Learn more about the roles of various files in:
# * https://r-pkgs.org/tests.html
# * https://testthat.r-lib.org/reference/test_package.html#special-files

library(testthat)
library(safetensors)

if (Sys.getenv("TORCH_TEST", unset = 0) == 1) {
  test_check("safetensors")
}

Try the safetensors package in your browser

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

safetensors documentation built on Sept. 13, 2023, 1:06 a.m.