cschwarz-stat-sfu-ca / BTSPAS

Bayesian Time Stratified Petersen Analysis System
1 stars 3 forks source link

arrangeGrob cannot be used when BTSPAS is parallelized #22

Closed cschwarz-stat-sfu-ca closed 3 years ago

cschwarz-stat-sfu-ca commented 5 years ago

If you run BTSPAS in parallel, e.g.for different data sets using the plyr package, it fails because arrange Grob() used in the posterior predictive plots for TSPNDENP doesn't work in parallel. [It took a while to narrow down this bug.]

I converted the routine to use facetting in place of arrangeGrob() and all is well for this routine.

Need to also make the conversion for TSPDE, TSPDE_WHChinnook, TSPDE_WHChinook2, WHSteel, and see if I use arrangeGrob() in anyother routine.

cschwarz-stat-sfu-ca commented 3 years ago

TSPDE fixed 2020-12-16. TSPDE_WHChinook fixed 2020-12-16 TSPDE_WHChinook2 fixed 2020-12-16 TSPDE_WHSteel fixed 2020-12-16. arrangeGrob not used anywhere else now.