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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.