In ModelingToolkit, respecialize(sys, mapping) changes the symbolic type
of nonnumeric parameters (such as callable parameters holding
interpolants) to the concrete type of their values. R is untyped, so the
type change itself does not apply: respecialize() checks that each
parameter exists and has a nonnumeric value (from mapping, a list of
parameters or formulas p ~ value / pairs list(p, value), or from the
initial conditions), sets that value as the parameter's initial condition
and records class(value)[1] in the variable_type metadata. With all = TRUE every parameter whose initial value is not a number is respecialized.
Only complete systems can be respecialized.