The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Check Status

testmath

The testmath package aims to extend functions from testthat (and waldo!) to create clear and concise unit tests for mathematical properties.

Installation

At the moment, this package is only available on Github. If you would like to install it, use:

pak::pak("stefanobarbieri4/testmath")

Usage

If you would like to access testmath’s suite of functions within your unit tests:

Functions

Below is a list of current unit tests. If you’re unsure of how to use them, they each have a help page that can be accessed via:

?expect_<property>

Example usage

library(testthat)
library(testmath)

test_that("My matrix is Symmetric Positive Definite", {
  mat <- matrix(c(2, 1, 1, 2), nrow = 2)
  expect_spd(mat)
})

Matrix Properties

Function Properties

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.