Distance Function Inference

This vignette illustrates type inference for a typical distance function.

library(RTypeInference)
source("distance.R")

distance2

We'll use the distance2 function.

tc = TypeCollector()
inferTypes(distance2, tc)

The output is shown below.

tc


duncantl/RTypeInference documentation built on Jan. 16, 2021, 12:30 a.m.