Problem with monitoring logProbs in some nimble versions

277 views
Skip to first unread message

Frédéric Gosselin

unread,
Nov 22, 2017, 12:54:43 PM11/22/17
to nimble-users
Hello,

this is to report a problem with some Nimble versions under Windows that were directly installed from Nimble website through calls such as:

install.packages("nimble", repos = "http://r-nimble.org", type = "source")

we cannot monitor logProb variables.


For example,


ConfModel$addMonitors("logProb_Y1","logProb_Ycons1")


gives me an error message after the buildMCMC command telling me that objects "logProb_Y1","logProb_Ycons1" do not exist.


This problem does not seem to happen in other (older?) versions of Nimble.


Do you know where this comes from and if there is a solution for this?


Sincerely,


Frédéric


BTW: how can we know the version of Nimble? Is there a command line for this?

David Pleydell

unread,
Nov 23, 2017, 5:55:54 AM11/23/17
to nimble-users

BTW: how can we know the version of Nimble? Is there a command line for this?


Hi Frederic

Regarding your final question, one option is to use help.start() and navigate to the index page of the Nimble package where the version number is displayed

However, a better (richer) alternative is to use the R command sessionInfo() - this provides a good summary of the versions of all the various package etc in your current R session.  

Best
David

ugoline godeau

unread,
Nov 29, 2017, 4:40:51 AM11/29/17
to nimble-users
Hello,
Just for info, I just did the update to 0.6-8 and I still have the problem.
Last time I had to reinstall everything (Rtools, R and Nimble) and it worked but only for one week and then it's started to do the error again. 
So I haven't done it again because I know it will not last.
Is there a solution ?
Thank you in advance for your answeres
Ugoline

Frédéric Gosselin

unread,
Nov 30, 2017, 11:33:38 AM11/30/17
to nimble-users
Thank you David. sessionInfo() is great! So the Nimble version I am using is 0.6-7.

Frédéric

nmic...@berkeley.edu

unread,
Dec 17, 2017, 12:06:13 PM12/17/17
to nimble-users
Hi Frédéric,

Sorry for the long delay!  A fix for this bug is now available in the `devel` branch of NIMBLE's github repo (link here).  If you install NIMBLE from the devel branch, you should again be able to monitor logProb variables when running MCMC algorithms.  Please let me know if the problem continues though, thanks!

Nick  

ugoline godeau

unread,
Jan 26, 2018, 6:29:04 AM1/26/18
to nimble-users
Hello,
Thank you for the fix, but I don't seem to understand how to install the package from the devel branch.
Could you explain it to me please
Thank you in advance
Ugoline

Jose Jimenez Garcia-Herrera

unread,
Jan 26, 2018, 6:46:06 AM1/26/18
to ugoline godeau, nimble-users

Hi Ugoline:

 

Try it:

 

devtools::session_info()

library(devtools)

install_github("nimble-dev/nimble", ref = "devel", subdir = "packages/nimble", force=TRUE)

library(nimble)

 

Best regards,

José

--
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 post to this group, send email to nimble...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/f4921d39-2f35-4d24-a269-74ce8f5e480d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Frédéric Gosselin

unread,
Feb 2, 2018, 5:50:11 AM2/2/18
to nimble-users
Thank you very much José.

For me it worked fine and solved the issue.

Sincerely,

Frédéric

To post to this group, send email to nimbl...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages