You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---> Testing R-tidybayes
Executing: cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-tidybayes/R-tidybayes/work/tidybayes" && /opt/local/bin/R CMD check ./tidybayes_3.0.7.tar.gz --no-manual --no-build-vignettes
* using log directory ‘/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-tidybayes/R-tidybayes/work/tidybayes/tidybayes.Rcheck’
* using R version 4.4.1 (2024-06-14)
* using platform: powerpc-apple-darwin10.0.0d2 (32-bit)
* R was compiled by
gcc-mp-13 (MacPorts gcc13 13.3.0_0+stdlib_flag) 13.3.0
GNU Fortran (MacPorts gcc13 13.3.0_0+stdlib_flag) 13.3.0
* running under: OS X Snow Leopard 10.6
* using session charset: UTF-8
* using options ‘--no-manual --no-build-vignettes’
* checking for file ‘tidybayes/DESCRIPTION’ ... OK
* this is package ‘tidybayes’ version ‘3.0.7’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... NOTE
Package suggested but not available for checking: ‘gifski’
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘tidybayes’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking ‘build’ directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking code files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... OK
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
Running ‘testthat.R’
OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking running R code from vignettes ...
‘tidy-brms.Rmd’ using ‘UTF-8’... OK
‘tidy-posterior.Rmd’ using ‘UTF-8’... OK
‘tidy-rstanarm.Rmd’ using ‘UTF-8’... OK
‘tidybayes-residuals.Rmd’ using ‘UTF-8’... failed
‘tidybayes.Rmd’ using ‘UTF-8’... failed
ERROR
Errors in running code in vignettes:
when running code in ‘tidybayes-residuals.Rmd’
...
Chain 4: 97.217 seconds (Sampling)
Chain 4: 178.892 seconds (Total)
Chain 4:
> cens_df_o %>% add_residual_draws(m_o) %>% median_qi(.residual) %>%
+ ggplot(aes(sample = .residual)) + geom_qq() + geom_qq_line()
When sourcing ‘tidybayes-residuals.R’:
Error: Predictive errors are not defined for ordinal or categorical models.
Execution halted
when running code in ‘tidybayes.Rmd’
...
$n
[1] 50
> m = sampling(ABC_stan, data = compose_data(ABC), control = list(adapt_delta = 0.99))
When sourcing ‘tidybayes.R’:
Error: error in evaluating the argument 'object' in selecting a method for function 'sampling': object 'ABC_stan' not found
Execution halted
* checking re-building of vignette outputs ... SKIPPED
* DONE
Status: 1 ERROR, 1 NOTE
Error in eval(x, envir = envir) : object 'eval_chunks' not found
Error in eval(x, envir = envir) : object 'eval_chunks' not found
Error in eval(x, envir = envir) : object 'eval_chunks' not found
Error in eval(x, envir = envir) : object 'eval_chunks' not found
Error in eval(x, envir = envir) : object 'eval_chunks' not found
> params <- list(EVAL = FALSE)
> if (requireNamespace("pkgdown", quietly = TRUE) &&
+ pkgdown::in_pkgdown()) {
+ tiny_width = small_width = med_width = 6.75
+ tiny_heig .... [TRUNCATED]
> eval_chunks = if (isTRUE(exists("params"))) params$EVAL else FALSE
> knitr::opts_chunk$set(fig.width = small_width, fig.height = small_height,
+ eval = eval_chunks)
> if (capabilities("cairo") && Sys.info()[["sysname"]] !=
+ "Darwin") {
+ knitr::opts_chunk$set(dev.args = list(png = list(type = "cairo")))
.... [TRUNCATED]
> dir.create("models", showWarnings = FALSE)
> library(magrittr)
> library(dplyr)
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
> library(forcats)
> library(modelr)
> library(ggdist)
> library(tidybayes)
> library(ggplot2)
> library(cowplot)
> library(broom)
Attaching package: ‘broom’
The following object is masked from ‘package:modelr’:
bootstrap
> library(rstan)
Loading required package: StanHeaders
rstan version 2.32.6 (Stan version 2.32.2)
For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores()).
To avoid recompilation of unchanged Stan programs, we recommend calling
rstan_options(auto_write = TRUE)
For within-chain threading using `reduce_sum()` or `map_rect()` Stan functions,
change `threads_per_chain` option:
rstan_options(threads_per_chain = 1)
Attaching package: ‘rstan’
The following object is masked from ‘package:magrittr’:
extract
> library(rstanarm)
Loading required package: Rcpp
This is rstanarm version 2.32.1
- See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
- Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
- For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores())
Attaching package: ‘rstanarm’
The following object is masked from ‘package:rstan’:
loo
> library(brms)
Loading 'brms' package (version 2.21.8). Useful instructions
can be found by typing help('brms'). A more detailed introduction
to the package is available through vignette('brms_overview').
Attaching package: ‘brms’
The following objects are masked from ‘package:rstanarm’:
dirichlet, exponential, get_y, lasso, ngrps
The following object is masked from ‘package:rstan’:
loo
The following objects are masked from ‘package:tidybayes’:
dstudent_t, pstudent_t, qstudent_t, rstudent_t
The following objects are masked from ‘package:ggdist’:
dstudent_t, pstudent_t, qstudent_t, rstudent_t
The following object is masked from ‘package:stats’:
ar
> library(bayesplot)
This is bayesplot version 1.11.1
- Online documentation and vignettes at mc-stan.org/bayesplot
- bayesplot theme set to bayesplot::theme_default()
* Does _not_ affect other ggplot2 plots
* See ?bayesplot_theme_set for details on theme setting
Attaching package: ‘bayesplot’
The following object is masked from ‘package:brms’:
rhat
> library(RColorBrewer)
> theme_set(theme_tidybayes() + panel_border())
> rstan_options(auto_write = TRUE)
> options(mc.cores = 1)
> options(width = 120)
> set.seed(5)
> n = 10
> n_condition = 5
> ABC = tibble(condition = factor(rep(c("A", "B", "C",
+ "D", "E"), n)), response = rnorm(n * 5, c(0, 1, 2, 1, -1),
+ 0.5))
> head(ABC, 10)
# A tibble: 10 × 2
condition response
<fct> <dbl>
1 A -0.420
2 B 1.69
3 C 1.37
4 D 1.04
5 E -0.144
6 A -0.301
7 B 0.764
8 C 1.68
9 D 0.857
10 E -0.931
> ABC %>% ggplot(aes(x = response, y = fct_rev(condition))) +
+ geom_point(alpha = 0.5) + ylab("condition")
> compose_data(ABC)
$condition
[1] 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
$n_condition
[1] 5
$response
[1] -0.42042774 1.69217967 1.37225407 1.03507138 -0.14427956 -0.30145399 0.76391681 1.68231434 0.85711318
[10] -0.93094589 0.61381517 0.59911027 1.45980370 0.92123282 -1.53588002 -0.06949307 0.70134345 0.90801662
[19] 1.12040863 -1.12967770 0.45025597 1.47093470 2.73398095 1.35338054 -0.59049553 -0.14674092 1.70929454
[28] 2.74938691 0.67145895 -1.42639772 0.15795752 1.55484708 3.10773029 1.60855182 -0.26038911 0.47578692
[37] 0.49523368 0.99976363 0.11890706 -1.07130406 0.77503018 0.59878841 1.96271054 1.94783398 -1.22828447
[46] 0.28111168 0.55649574 1.76987771 0.63783576 -1.03460558
$n
[1] 50
> m = sampling(ABC_stan, data = compose_data(ABC), control = list(adapt_delta = 0.99))
When sourcing ‘tidybayes.R’:
Error: error in evaluating the argument 'object' in selecting a method for function 'sampling': object 'ABC_stan' not found
Execution halted
The text was updated successfully, but these errors were encountered:
Seems related to yihui/knitr#2338, and also that the way I am skipping vignette rendering for long vignettes seems not properly cause the check for re-running vignette code to skip depending on R CMD CHECK options. I think the former should be fixed by passing purl = FALSE on chunks with error = TRUE and the latter by not using an RMarkdown parameter to determine the value of eval (since that parameter value is getting evaluated and written into the vignette code file instead of recalculated). I'll see what I can do.
Output for related vignettes:
The text was updated successfully, but these errors were encountered: