dgrtwo / empirical-bayes-book

Introduction to Empirical Bayes: Examples from Baseball Statistics
Other
189 stars 76 forks source link

error in compiling the book #35

Open michelescandola opened 4 years ago

michelescandola commented 4 years ago

Dear all, I hope to not be annoying (if this is the case, just remove this issue), however, when I try to compile your book from source with RStudio, I have this error:

Quitting from lines 185-194 (dirichlet-multinomial.Rmd) Error: object "simulation" not found Backtrace: x

  1. +-base::local(...)
  2. | -base::eval.parent(substitute(eval(quote(expr), envir)))
  3. | -base::eval(expr, p)
  4. | -base::eval(expr, p)
  5. +-base::eval(...)
  6. | -base::eval(...)
  7. | +-base::do.call(...)
  8. | -(function (input, output_format = NULL, output_file = NULL, output_dir = NULL, ...
  9. | -knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
    1. | -knitr:::process_file(text, output)
    2. | +-base::withCallingHandlers(...)
    3. | +-knitr:::process_group(group)
    4. | -knitr:::process_group.block(group)
    5. | -knitr:::call_block(x)
    6. | -knitr:::block_exec(params)
    7. | +-knitr:::in_dir(...)
    8. | -knitr:::evaluate(...)
    9. | -evaluate::evaluate(...)
    10. | -evaluate:::evaluate_call(...)
    11. | +-evaluate:::timing_fn(...)

sessionInfo() R version 4.0.0 (2020-04-24) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale: [1] LC_CTYPE=it_IT.UTF-8 LC_NUMERIC=C LC_TIME=it_IT.UTF-8
[4] LC_COLLATE=it_IT.UTF-8 LC_MONETARY=it_IT.UTF-8 LC_MESSAGES=it_IT.UTF-8
[7] LC_PAPER=it_IT.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=it_IT.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] purrr_0.3.4 scales_1.1.0 ggplot2_3.3.0 knitr_1.28 tidyr_1.0.2 dplyr_0.8.5
[7] Lahman_7.0-1

loaded via a namespace (and not attached): [1] rstan_2.19.3 tidyselect_1.0.0 xfun_0.13 reshape2_1.4.4 splines_4.0.0
[6] colorspace_1.4-1 vctrs_0.2.4 htmltools_0.4.0 stats4_4.0.0 loo_2.2.0
[11] yaml_2.2.1 utf8_1.1.4 rlang_0.4.6 pkgbuild_1.0.7 pillar_1.4.4
[16] glue_1.4.0 withr_2.2.0 matrixStats_0.56.0 lifecycle_0.2.0 plyr_1.8.6
[21] stringr_1.4.0 munsell_0.5.0 gtable_0.3.0 VGAM_1.1-3 evaluate_0.14
[26] labeling_0.3 inline_0.3.15 callr_3.4.3 ps_1.3.2 parallel_4.0.0
[31] fansi_0.4.1 highr_0.8 Rcpp_1.0.4.6 StanHeaders_2.19.2 farver_2.0.3
[36] gridExtra_2.3 packrat_0.5.0 digest_0.6.25 stringi_1.4.6 bookdown_0.18
[41] processx_3.4.2 grid_4.0.0 cli_2.0.2 tools_4.0.0 magrittr_1.5
[46] tibble_3.0.1 crayon_1.3.4 pkgconfig_2.0.3 ellipsis_0.3.0 prettyunits_1.1.1 [51] assertthat_0.2.1 rmarkdown_2.1 rstudioapi_0.11 R6_2.4.1 compiler_4.0.0