namespace/lookup issues if using nimbleHMC
in third-party package via suggests
(possibly imports
?)
#72
Labels
nimbleHMC
in third-party package via suggests
(possibly imports
?)
#72
For reasons discussed here, nimble-using packages need
nimble
inrequires
.A related issue is that if a 3rd package wants to use
nimbleHMC
, it cannot usenimbleHMC::configureHMC
based onsuggests
andrequireNamespace(nimbleHMC)
becausesampler_NUTS
cannot be found from withinnimble
s MCMC configuration steps.A work-around might be that in
nimbleHMC
, when we invokeaddSampler
we do so withnimbleHMC::sampler_NUTS
(e.g.) rather than "NUTS". We do in places in nimble usenimble::
, so I think this can pass CRAN but not entirely sure.I suspect similar issues would arise with
addHMC
,buildHMC
,nimbleHMC
.And more generally, once we have a proposed solution, it would be good to exercise all of
nimbleHMC
functionality from a 3rd package withnimbleHMC
insuggests
to test things.Now if a 3rd package has
nimbleHMC
inimports, it might work if
configureHMCand
sampler_NUTSare tagged with
importFromin
NAMESPACE`. I haven't checked but this would be worth an experiment.I am happy to investigate, but also raising this for @danielturek to consider/weigh in on.
Tagging @kenkellner given this arose from a nimbleEcology issue.
The text was updated successfully, but these errors were encountered: