Bob Carpenter
unread,Apr 25, 2016, 3:50:40 PM4/25/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to stan...@googlegroups.com
I still can't get RStan to avoid recompilation for multiple runs.
If I set the save_dso thing, it saves it and it's available in
the next session, but I can't seem to get it to reuse a compiled
model in the same session. So I want to check that I'm not doing
something wrong.
I followed the instructions after loading the library:
> library(rstan)
Loading required package: ggplot2
rstan (Version 2.9.0-3, packaged: 2016-02-11 15:54:41 UTC, GitRev: 05c3d0058b6a)
For execution on a local, multicore CPU with excess RAM we recommend calling
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores()) and
and ran this:
> library(rstan);
> options(mc.cores = 4);
> rstan_options(auto_write = TRUE);
> fit <-
stan("exon-diff-hier.stan",
data=c("I", "J", "K", "N", "y"),
chains=4, iter=500, refresh=50,
control=list(stepsize=0.1, adapt_delta=0.95), fit=fit);
It ran in parallel, but when it was done, it dumped out the following
warning. Might this have something to do with why it recompiles
every time? (I have switched back to the fit=fit argument because I
couldn't get the auto recompile to work).
> Warning message:
class "C++Object" is defined (with package slot ‘Rcpp’) but no metadata object found to revise subclass information---not exported? Making a copy in package ‘.GlobalEnv’
Warning message:
class "C++Object" is defined (with package slot ‘Rcpp’) but no metadata object found to revise subclass information---not exported? Making a copy in package ‘.GlobalEnv’
Warning message:
class "C++Object" is defined (with package slot ‘Rcpp’) but no metadata object found to revise subclass information---not exported? Making a copy in package ‘.GlobalEnv’
Warning message:
class "C++Object" is defined (with package slot ‘Rcpp’) but no metadata object found to revise subclass information---not exported? Making a copy in package ‘.GlobalEnv’
I'm willing to run whatever diagnostics you think necessary.
Maybe Jonah or Andrew knows how to make this work on a Mac? Daniel's
having the same problem as I am.
- Bob