SBC_backend_mock: A mock backend.

View source: R/backend-mock.R

SBC_backend_mockR Documentation

A mock backend.

Description

Mock backend is useful for testing the package. It will ignore all data passed to it and always provide result as the draws generated by the backend.

Usage

SBC_backend_mock(
  result = posterior::draws_matrix(a = rnorm(100)),
  output = NULL,
  message = NULL,
  warning = NULL,
  error = NULL
)

Arguments

result

a draws_matrix that will be returned regardless of the data


hyunjimoon/SBC documentation built on March 15, 2024, 3:18 a.m.