--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/b90fe686-5c2a-496c-99b0-c8c2fd425dben%40googlegroups.com.
Hi Perry,
That's very helpful and what you write makes absolute sense, and indeed it does fix the problem... However, the reason why I had `rAExp <- NULL` (and similar for other functions) in the first place was to avoid the following NOTE when running `R CMD check --as-cran`
* checking R code for possible problems ... [12s/12s] NOTE
expfit: no visible binding for global variable ‘rAExp’
expfit : runfun: no visible binding for global variable ‘rAExp’
icarfit: no visible binding for global variable ‘rAOG’
icarfit : runfun: no visible binding for global variable ‘rAOG’
logisticfit: no visible binding for global variable ‘rALog’
logisticfit : runfun: no visible binding for global variable
‘rALog’
Undefined global functions or variables:
rAExp rALog rAOG
The three undefined global functions are effectively defined internally as NULL to avoid this problem. I (think) could register these distributions outside these functions (as done in some other packages like nimbleEcology), but I'm not sure how I can handle the parallelization as I was effectively internalizing what was suggested in this post... I realise this outside the scope of the mailing list (not really a nimble problem!) but if you have any suggestions that would be great!
All Best,Hi Perry,
That's very helpful and what you write makes absolute sense, and indeed it does fix the problem... However, the reason why I had `rAExp <- NULL` (and similar for other functions) in the first place was to avoid the following NOTE when running `R CMD check --as-cran`
* checking R code for possible problems ... [12s/12s] NOTE
expfit: no visible binding for global variable ‘rAExp’
expfit : runfun: no visible binding for global variable ‘rAExp’
icarfit: no visible binding for global variable ‘rAOG’
icarfit : runfun: no visible binding for global variable ‘rAOG’
logisticfit: no visible binding for global variable ‘rALog’
logisticfit : runfun: no visible binding for global variable ‘rALog’
Undefined global functions or variables:
rAExp rALog rAOG
The three undefined global functions are effectively defined internally as NULL to avoid this problem. I (think) could register these distributions outside these functions (as done in some other packages like nimbleEcology), but I'm not sure how I can handle the parallelization as I was effectively internalizing what was suggested in this post... I realise this outside the scope of the mailing list (not really a nimble problem!) but if you have any suggestions that would be great!
All Best,
Enrico
Hi Perry,
That's very helpful and what you write makes absolute sense, and indeed it does fix the problem... However, the reason why I had `rAExp <- NULL` (and similar for other functions) in the first place was to avoid the following NOTE when running `R CMD check --as-cran`
* checking R code for possible problems ... [12s/12s] NOTE
expfit: no visible binding for global variable ‘rAExp’
expfit : runfun: no visible binding for global variable ‘rAExp’
icarfit: no visible binding for global variable ‘rAOG’
icarfit : runfun: no visible binding for global variable ‘rAOG’
logisticfit: no visible binding for global variable ‘rALog’
logisticfit : runfun: no visible binding for global variable
‘rALog’
Undefined global functions or variables:
rAExp rALog rAOG
The three undefined global functions are effectively defined internally as NULL to avoid this problem. I (think) could register these distributions outside these functions (as done in some other packages like nimbleEcology), but I'm not sure how I can handle the parallelization as I was effectively internalizing what was suggested in this post... I realise this outside the scope of the mailing list (not really a nimble problem!) but if you have any suggestions that would be great!
All Best,
Thanks Perry, I opted for the latter solution (i.e. creating the
placeholder function) and it works fine!