doesCountEvaluations function

Check whether the function is counting its function evaluations.

Check whether the function is counting its function evaluations.

In this case the function is of type smoof_counting_function or it is further wrapped by another wrapper. This function then checks recursively, if there is a counting wrapper.

doesCountEvaluations(object)

Arguments

  • object: [any]

    Arbitrary R object.

Returns

logical(1)

See Also

addCountingWrapper

  • Maintainer: Jakob Bossek
  • License: BSD_2_clause + file LICENSE
  • Last published: 2023-03-10