R: return the namespace in which a nimbleFunction is being...

getLoadingNamespace {nimble} | R Documentation

## return the namespace in which a nimbleFunction is being loaded

### Description

`nimbleFunction` constructs and evals a reference class definition. When `nimbleFunction` is used in package source code, this can lead to problems finding things due to namespace issues. Using `where = getLoadingNamespace()` in a `nimbleFunction` in package source code should solve this problem.

### Usage

    getLoadingNamespace()

### Details

`nimbleFunction`s defined in the NIMBLE source code use `where = getLoadingNamespace()`. Please let the NIMBLE developers know if you encounter problems with this.

[Package nimble version 0.9.1 Index]