- using R version 4.3.3 (2024-02-29)
- using platform: aarch64-apple-darwin20 (64-bit)
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.4
- using session charset: UTF-8
- checking for file ‘samplr/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘samplr’ version ‘1.0.0’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- 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 ‘samplr’ can be installed ... [48s/53s] OK
See the install log for details.
- used C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
- used SDK: ‘MacOSX11.3.sdk’
- checking installed package size ... NOTE
installed size is 14.9Mb
sub-directories of 1Mb or more:
libs 13.8Mb
- 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 R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [2s/2s] OK
- checking Rd files ... [1s/1s] 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 line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/4s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [4s/5s] ERROR
Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
3. ├─vdiffr:::print_plot(plot, title)
4. └─vdiffr:::print_plot.function(plot, title)
5. └─samplr (local) p()
6. └─samplr::plot_2d_density(...) at test-samplers.R:249:5
7. └─samplr:::.checkGivenInfo(...)
8. └─samplr:::.checkWeights(weights, length(distr_name))
[ FAIL 2 | WARN 0 | SKIP 7 | PASS 214 ]
Deleting unused snapshots:
• calc_functions/change-plot.svg
• calc_functions/qq-change-plot.svg
• calc_functions/sequence-autocorrelation-plot.svg
• samplers/2d-density-custom.svg
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking running R code from vignettes ... [17s/19s] ERROR
Errors in running code in vignettes:
when running code in ‘multivariate-mixtures.Rmd’
...
> weights <- runif(15)
> weights <- weights/rep(sum(weights), 15)
> hill_map <- plot_2d_density(start = c(-10, -10), size = 20,
+ cellsPerRow = 150, names, parameters, weights)
When sourcing ‘multivariate-mixtures.R’:
Error: The sum of the weights must equal 1
Execution halted
‘abs-simulations.Rmd’ using ‘UTF-8’... [0s/1s] OK
‘custom-density-functions.Rmd’ using ‘UTF-8’... [5s/6s] OK
‘how-to-sample.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘multivariate-mixtures.Rmd’ using ‘UTF-8’... failed
‘samplr.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘supported-distributions.Rmd’ using ‘UTF-8’... [0s/0s] OK
‘time-comparisons.Rmd’ using ‘UTF-8’... [10s/11s] OK
- checking re-building of vignette outputs ... [32s/52s] NOTE
Error(s) in re-building vignettes:
--- re-building ‘abs-simulations.Rmd’ using rmarkdown
--- finished re-building ‘abs-simulations.Rmd’
--- re-building ‘custom-density-functions.Rmd’ using rmarkdown
--- finished re-building ‘custom-density-functions.Rmd’
--- re-building ‘how-to-sample.Rmd’ using rmarkdown
--- finished re-building ‘how-to-sample.Rmd’
--- re-building ‘multivariate-mixtures.Rmd’ using rmarkdown
Quitting from lines 44-49 [unnamed-chunk-4] (multivariate-mixtures.Rmd)
Error: processing vignette 'multivariate-mixtures.Rmd' failed with diagnostics:
The sum of the weights must equal 1
--- failed re-building ‘multivariate-mixtures.Rmd’
--- re-building ‘samplr.Rmd’ using rmarkdown
--- finished re-building ‘samplr.Rmd’
--- re-building ‘supported-distributions.Rmd’ using rmarkdown
--- finished re-building ‘supported-distributions.Rmd’
--- re-building ‘time-comparisons.Rmd’ using rmarkdown
--- finished re-building ‘time-comparisons.Rmd’
SUMMARY: processing the following file failed:
‘multivariate-mixtures.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/4s] OK
- DONE
Status: 2 ERRORs, 2 NOTEs
- using check arguments '--no-clean-on-error '