You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warn if taking derivs of a method calling model calculate without model, updateNodes, or constantNodes args (#1566)
* Fix misspelling in an error msg.
* Add a bit more on alternatives to default samplers in documentation.
* Provide a test of compilation in Chapter 4 of manual.
* Make BNP docn more user-friendly for less theoretical users.
* Make minor edit to nimDerivs roxygen.
* Fix up nimDerivs roxygen to be more clear about derivs of nfs.
* Add check that correct args passed to nimDerivs
when taking deriv of method containing calculate call (NCT issue 557).
* Fix test for new AD warning.
* Extend checking of nimDerivs args to nested case,
and hide checking behind an option.
* Fix typo in function name.
* Make slight change to comment.
message(" [Note] Detected use of `nimDerivs` with a function or method, `", methodName, "`, for which `buildDerivs` has not been set. This nimbleFunction cannot be compiled.")
266
+
messageIfVerbose(" [Note] Detected use of `nimDerivs` with a function or method, `", methodName, "`, for which `buildDerivs` has not been set. This nimbleFunction cannot be compiled.")
warning("nimDerivs_nf: detected a model, ", paste(modelElement, collapse=','), ", associated with the nimbleFunction whose method is being differentiated. If model calculations are done in the method being differentiated, the 'model' argument to 'nimDerivs' should be included to ensure correct restoration of values in the model.")
if(length(methods) >0) stop('Cannot provide multiple methods if there is no setup function. Use "setup = function(){}" or "setup = TRUE" if you need a setup function that does not do anything', call.=FALSE)
0 commit comments