Skip to contents

An object that promises to resolve to a LinkComponent object. Inheriting from Promise and LinkComponent.

Usage

PromiseLinkComponent(fun, prior, key)

Arguments

fun

(function)
a function that returns a LinkComponent. See details.

prior

(Prior)
The prior for the scaling coeficient.

key

(character)
Link identifier. See Details.

Details

The fun slot should be a function of signature function(prior, model) and should return a LinkComponent object. An error will be thrown if the returned LinkComponent object does not have the same key slot value as the original PromiseLinkComponent.

Slots

fun

(function)
a function that returns a LinkComponent. See details.