yonicd / covrpage

Create a summary readme for the testthat subdirectory to communicate with potential users
https://yonicd.github.io/covrpage/
Other
52 stars 7 forks source link

covrpage::covrpage() errors regarding unused connection #61

Open njtierney opened 1 year ago

njtierney commented 1 year ago

Hi @yonicd !

Thanks for this package, this does exactly what I was looking for.

I'm having trouble getting this to run on the greta dev branch - here

I get the following error as it is knitting the document when running covrpage::covrpage()

  |............................                                   |  45%
label: unnamed-chunk-4 (with options) 
List of 1
 $ include: logi FALSE

Quitting from lines 64-65 (_covrpage.Rmd) 
Error: Failure in `/private/var/folders/9c/k3wqmhhx4qsb3fd66n4prhlw0000gq/T/Rtmp1uZo28/R_LIBS10d117a5e4050/greta/greta-tests/testthat.Rout.fail`
In addition: Warning messages:
1: In for (filter in .globals$class_filters) classes <- filter(classes) :
  closing unused connection 6 (<-localhost:11582)
2: In for (filter in .globals$class_filters) classes <- filter(classes) :
  closing unused connection 5 (<-localhost:11582)
3: closing unused connection 7 (<-localhost:11582) 
4: closing unused connection 6 (<-localhost:11582) 

I'm fairly sure this is to do with the fact that greta is big and complex, but just wanted to flag it here in case it is

yonicd commented 1 year ago

Thanks for trying out the package!

Just to verify, testthat/covr are passing wo problems indep of covrpage?

njtierney commented 1 year ago

ah they are not passing tests! Is that a requirement, or is there an option I can pass along to allow failing tests?

yonicd commented 1 year ago

The package tries to get around failing tests by commenting out offending lines in the test dir.

From previous issues usually something is very broken down in pkg tests for it not to be able to get around failures.

I can fork your repo and try to see why it is struggling

njtierney commented 1 year ago

OK! It might be a bit of admin/work installing the dependencies for greta, so no worries if it ends up being a bit much!

yonicd commented 1 year ago

I just finished refactoring this package and used greta as one of my hard cases to see if the refactor was successful... i checked out your PR and ran it on it and it handeled it great.

I dont have write privlieges to greta so i cant commit to your PR . here is the md output.

Tests and Coverage

23 December, 2022 14:18:41

This output is created by covrpage.

Coverage

Coverage summary is created using the covr package.

## โš ๏ธ Not All Tests Passed
##   Coverage statistics are approximations of the non-failing tests.
##   Use with caution
## 
##  For further investigation check in testthat summary tables.
Object Coverage (%)
greta 1.23
R/as_data.R 0.00
R/calculate.R 0.00
R/callbacks.R 0.00
R/chol2symm.R 0.00
R/conda_greta_env.R 0.00
R/dag_class.R 0.00
R/distribution.R 0.00
R/extract_replace_combine.R 0.00
R/functions.R 0.00
R/greta_array_class.R 0.00
R/greta_create_conda_env.R 0.00
R/greta_install_miniconda.R 0.00
R/greta_install_python_deps.R 0.00
R/greta_mcmc_list.R 0.00
R/greta_model_class.R 0.00
R/greta_stash.R 0.00
R/inference_class.R 0.00
R/inference.R 0.00
R/install_greta_deps.R 0.00
R/joint.R 0.00
R/mixture.R 0.00
R/new_install_process.R 0.00
R/node_class.R 0.00
R/node_types.R 0.00
R/operators.R 0.00
R/optimisers.R 0.00
R/probability_distributions.R 0.00
R/progress_bar.R 0.00
R/reinstallers.R 0.00
R/samplers.R 0.00
R/simulate.R 0.00
R/structures.R 0.00
R/testthat-helpers.R 0.00
R/tf_functions.R 0.00
R/transforms.R 0.00
R/unknowns_class.R 0.00
R/variable.R 0.00
R/zzz.R 0.00
R/utils.R 4.60
R/checkers.R 10.73
R/test_if_forked_cluster.R 22.22


Unit Tests

Unit Test summary is created using the testthat package.

file n time error failed skipped warning icon
test_as_data.R 2 0.299 0 0 2 0 ๐Ÿ”ถ
test_calculate.R 21 2.374 0 0 21 0 ๐Ÿ”ถ
test_check_tf_installed.R 3 0.426 0 0 3 0 ๐Ÿ”ถ
test_distributions.R 44 4.727 0 0 44 0 ๐Ÿ”ถ
test_extract_replace_combine.R 20 2.328 0 0 20 0 ๐Ÿ”ถ
test_functions.R 22 2.484 0 0 22 0 ๐Ÿ”ถ
test_future.R 4 3.771 0 2 0 0 ๐Ÿ›‘
test_greta_array_class.R 2 0.415 0 0 2 0 ๐Ÿ”ถ
test_greta_mcmc_list_class.R 3 0.367 0 0 3 0 ๐Ÿ”ถ
test_head_tail_work.R 1 0.103 0 0 1 0 ๐Ÿ”ถ
test_iid_samples.R 6 0.765 0 0 6 0 ๐Ÿ”ถ
test_inference.R 24 2.995 0 0 24 0 ๐Ÿ”ถ
test_install_greta_deps.R 1 0.218 0 0 1 0 ๐Ÿ”ถ
test_joint.R 13 1.416 0 0 13 0 ๐Ÿ”ถ
test_misc.R 16 1.440 0 0 12 0 ๐Ÿ”ถ
test_mixture.R 12 1.418 0 0 12 0 ๐Ÿ”ถ
test_operators.R 6 0.798 0 0 6 0 ๐Ÿ”ถ
test_opt.R 4 0.421 0 0 4 0 ๐Ÿ”ถ
test_posteriors.R 7 0.894 0 0 7 0 ๐Ÿ”ถ
test_representations.R 8 0.855 0 0 8 0 ๐Ÿ”ถ
test_simulate.R 5 0.536 0 0 5 0 ๐Ÿ”ถ
test_syntax.R 4 0.572 0 0 4 0 ๐Ÿ”ถ
test_transforms.R 2 0.213 0 0 2 0 ๐Ÿ”ถ
test_truncated.R 15 1.750 0 0 15 0 ๐Ÿ”ถ
test_variables.R 8 1.022 0 0 8 0 ๐Ÿ”ถ
test-diagrammer-installed.R 1 0.115 0 0 1 0 ๐Ÿ”ถ
test-message_if_using_gpu.R 5 0.687 4 0 4 0 ๐Ÿ”ถ
test-tensorflow-rpkg-stability.R 6 0.761 0 0 6 0 ๐Ÿ”ถ
Show Detailed Test Results | file | context | test | status | n | time | icon | |:-----------------------------------------------------------------------------------|:--------------------------|:---------------------------------------------------------------------------------------|:--------|----:|------:|:-----| | [test_as_data.R](testthat/test_as_data.R#L2) | as_data | as_data coerces correctly | SKIPPED | 1 | 0.152 | ๐Ÿ”ถ | | [test_as_data.R](testthat/test_as_data.R#L107) | as_data | as_data errors informatively | SKIPPED | 1 | 0.147 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L2) | calculate | deterministic calculate works with correct lists | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L29) | calculate | stochastic calculate works with correct lists | SKIPPED | 1 | 0.198 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L103) | calculate | deterministic calculate works with greta_mcmc_list objects | SKIPPED | 1 | 0.139 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L133) | calculate | calculate with greta_mcmc_list doesnโ€™t mix up variables | SKIPPED | 1 | 0.125 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L154) | calculate | calculate with greta_mcmc_list doesnโ€™t lose track of new nodes | SKIPPED | 1 | 0.115 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L171) | calculate | stochastic calculate works with greta_mcmc_list objects | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L226) | calculate | calculate errors if the mcmc samples unrelated to target | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L254) | calculate | stochastic calculate works with mcmc samples & new stochastics | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L289) | calculate | calculate errors nicely if non-greta arrays are passed | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L309) | calculate | calculate errors nicely if values for stochastics not passed | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L326) | calculate | calculate errors nicely if values have incorrect dimensions | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L340) | calculate | calculate works with variable batch sizes | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L368) | calculate | calculate errors nicely with invalid batch sizes | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L391) | calculate | calculate returns a named list | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L416) | calculate | calculate produces the right number of samples | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L459) | calculate | calculate uses the local RNG seed | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L495) | calculate | when calculate simulates multiple values, they are calculated using the same RNG seeds | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L507) | calculate | calculate works if distribution-free variables are fixed | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L519) | calculate | calculate errors if distribution-free variables are not fixed | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L531) | calculate | calculate errors if a distribution cannot be sampled from | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_calculate.R](testthat/test_calculate.R#L542) | calculate | calculate errors nicely if nsim is invalid | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_check_tf_installed.R](testthat/test_check_tf_installed.R#L2) | check_tf_installed | Config/reticulate: has installed python and tf and tfp | SKIPPED | 1 | 0.109 | ๐Ÿ”ถ | | [test_check_tf_installed.R](testthat/test_check_tf_installed.R#L10) | check_tf_installed | TF version is at least version 2.9.0 | SKIPPED | 1 | 0.194 | ๐Ÿ”ถ | | [test_check_tf_installed.R](testthat/test_check_tf_installed.R#L16) | check_tf_installed | TFP version is at least version 1.18.0 | SKIPPED | 1 | 0.123 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L2) | distributions | normal distribution has correct density | SKIPPED | 1 | 0.131 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L14) | distributions | multidimensional normal distribution has correct density | SKIPPED | 1 | 0.117 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L29) | distributions | uniform distribution has correct density | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L40) | distributions | lognormal distribution has correct density | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L51) | distributions | bernoulli distribution has correct density | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L62) | distributions | binomial distribution has correct density | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L73) | distributions | beta-binomial distribution has correct density | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L88) | distributions | negative binomial distribution has correct density | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L99) | distributions | hypergeometric distribution has correct density | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L110) | distributions | poisson distribution has correct density | SKIPPED | 1 | 0.120 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L121) | distributions | gamma distribution has correct density | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L132) | distributions | inverse gamma distribution has correct density | SKIPPED | 1 | 0.109 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L143) | distributions | weibull distribution has correct density | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L157) | distributions | exponential distribution has correct density | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L168) | distributions | pareto distribution has correct density | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L179) | distributions | student distribution has correct density | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L196) | distributions | laplace distribution has correct density | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L207) | distributions | beta distribution has correct density | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L221) | distributions | cauchy distribution has correct density | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L235) | distributions | logistic distribution has correct density | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L249) | distributions | f distribution has correct density | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L260) | distributions | chi squared distribution has correct density | SKIPPED | 1 | 0.109 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L271) | distributions | multivariate normal distribution has correct density | SKIPPED | 1 | 0.107 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L293) | distributions | Wishart distribution has correct density | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L326) | distributions | lkj distribution has correct density | SKIPPED | 1 | 0.115 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L367) | distributions | multinomial distribution has correct density | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L392) | distributions | categorical distribution has correct density | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L413) | distributions | dirichlet distribution has correct density | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L428) | distributions | dirichlet-multinomial distribution has correct density | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L452) | distributions | scalar-valued distributions can be defined in models | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L527) | distributions | array-valued distributions can be defined in models | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L608) | distributions | distributions can be sampled from by MCMC | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L699) | distributions | uniform distribution errors informatively | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L728) | distributions | poisson() and binomial() error informatively in glm | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L751) | distributions | wishart distribution errors informatively | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L773) | distributions | lkj_correlation distribution errors informatively | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L808) | distributions | multivariate_normal distribution errors informatively | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L885) | distributions | multinomial distribution errors informatively | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L938) | distributions | categorical distribution errors informatively | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L979) | distributions | dirichlet distribution errors informatively | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L1022) | distributions | dirichlet values sum to one | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L1034) | distributions | dirichlet-multinomial distribution errors informatively | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L1087) | distributions | Wishart can use a choleskied Sigma | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_distributions.R](testthat/test_distributions.R#L1096) | distributions | multivariate distribs with matrix params can be sampled from | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L2) | extract_replace_combine | extract works like R | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L57) | extract_replace_combine | replace works like R | SKIPPED | 1 | 0.217 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L301) | extract_replace_combine | rep works like R | SKIPPED | 1 | 0.124 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L346) | extract_replace_combine | rbind, cbind and c work like R | SKIPPED | 1 | 0.122 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L372) | extract_replace_combine | abind works like R | SKIPPED | 1 | 0.142 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L385) | extract_replace_combine | abind errors informatively | SKIPPED | 1 | 0.109 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L402) | extract_replace_combine | rbind and cbind can prepend R arrays to greta arrays | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L425) | extract_replace_combine | assign errors on variable greta arrays | SKIPPED | 1 | 0.117 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L434) | extract_replace_combine | rbind and cbind give informative error messages | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L449) | extract_replace_combine | replacement gives informative error messages | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L467) | extract_replace_combine | extraction gives informative error messages | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L481) | extract_replace_combine | stochastic and operation greta arrays can be extracted | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L493) | extract_replace_combine | extract, replace, combine work in models | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L518) | extract_replace_combine | length and dim work | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L536) | extract_replace_combine | dim\<- works | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L551) | extract_replace_combine | greta_array() reshapes array-like greta arrays like array | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L577) | extract_replace_combine | greta_array() reshapes scalar greta arrays like array | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L602) | extract_replace_combine | dim\<- errors as expected | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L624) | extract_replace_combine | dim\<- works in a model | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L646) | extract_replace_combine | c handles NULLs and lists | SKIPPED | 1 | 0.109 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L9) | functions | simple functions work as expected | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L47) | functions | primitive functions work as expected | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L71) | functions | cummax and cummin functions error informatively | SKIPPED | 1 | 0.216 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L85) | functions | complex number functions error informatively | SKIPPED | 1 | 0.124 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L99) | functions | matrix functions work as expected | SKIPPED | 1 | 0.120 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L131) | functions | kronecker works with greta and base array arguments | SKIPPED | 1 | 0.115 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L151) | functions | aperm works as expected | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L167) | functions | reducing functions work as expected | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L198) | functions | cumulative functions work as expected | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L207) | functions | apply works as expected | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L238) | functions | tapply works as expected | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L250) | functions | cumulative functions error as expected | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L276) | functions | sweep works as expected | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L297) | functions | sweep works for numeric x and greta array STATS | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L311) | functions | solve and sweep and kronecker error as expected | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L384) | functions | colSums etc. error as expected | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L407) | functions | forwardsolve and backsolve error as expected | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L432) | functions | tapply errors as expected | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L451) | functions | eigen works as expected | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L497) | functions | ignored options are errored/warned about | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L523) | functions | incorrect dimensions are errored about | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_functions.R](testthat/test_functions.R#L566) | functions | chol2symm inverts chol | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_future.R](testthat/test_future.R#L8) | future | check_future_plan() works | PASS | 1 | 3.048 | | | [test_future.R](testthat/test_future.R#L22_L24) | future | mcmc errors for invalid parallel plans | FAILED | 3 | 0.723 | ๐Ÿ›‘ | | [test_greta_array_class.R](testthat/test_greta_array_class.R#L2) | greta_array_class | print and summary work | SKIPPED | 1 | 0.247 | ๐Ÿ”ถ | | [test_greta_array_class.R](testthat/test_greta_array_class.R#L60) | greta_array_class | as.matrix works | SKIPPED | 1 | 0.168 | ๐Ÿ”ถ | | [test_greta_mcmc_list_class.R](testthat/test_greta_mcmc_list_class.R#L4) | greta_mcmc_list_class | draws and raw draws should have the right iteration numbering | SKIPPED | 1 | 0.143 | ๐Ÿ”ถ | | [test_greta_mcmc_list_class.R](testthat/test_greta_mcmc_list_class.R#L32) | greta_mcmc_list_class | window works | SKIPPED | 1 | 0.114 | ๐Ÿ”ถ | | [test_greta_mcmc_list_class.R](testthat/test_greta_mcmc_list_class.R#L68) | greta_mcmc_list_class | windowing does not have spooky effects | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_head_tail_work.R](testthat/test_head_tail_work.R#L4) | head_tail_work | head and tail work | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_iid_samples.R](testthat/test_iid_samples.R#L4) | iid_samples | univariate samples are correct | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_iid_samples.R](testthat/test_iid_samples.R#L109) | iid_samples | truncated univariate samples are correct | SKIPPED | 1 | 0.191 | ๐Ÿ”ถ | | [test_iid_samples.R](testthat/test_iid_samples.R#L165) | iid_samples | multivariate samples are correct | SKIPPED | 1 | 0.126 | ๐Ÿ”ถ | | [test_iid_samples.R](testthat/test_iid_samples.R#L208) | iid_samples | joint samples are correct | SKIPPED | 1 | 0.132 | ๐Ÿ”ถ | | [test_iid_samples.R](testthat/test_iid_samples.R#L235) | iid_samples | mixture samples are correct | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_iid_samples.R](testthat/test_iid_samples.R#L283) | iid_samples | distributions without RNG error nicely | SKIPPED | 1 | 0.101 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L4) | inference | bad mcmc proposals are rejected | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L62) | inference | mcmc works with verbosity and warmup | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L73) | inference | mcmc works with cpu and gpu options | SKIPPED | 1 | 0.109 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L88) | inference | mcmc prints out CPU and GPU text | SKIPPED | 1 | 0.195 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L103) | inference | mcmc works with multiple chains | SKIPPED | 1 | 0.123 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L124) | inference | mcmc handles initial values nicely | SKIPPED | 1 | 0.128 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L174) | inference | progress bar gives a range of messages | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L188) | inference | extra_samples works | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L204) | inference | trace_batch_size works | SKIPPED | 1 | 0.426 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L227) | inference | stashed_samples works | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L261) | inference | samples has object names | SKIPPED | 1 | 0.116 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L279) | inference | model errors nicely | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L290) | inference | mcmc supports rwmh sampler with normal proposals | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L301) | inference | mcmc supports rwmh sampler with uniform proposals | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L313) | inference | mcmc supports slice sampler with single precision models | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L325) | inference | mcmc doesnโ€™t support slice sampler with double precision models | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L339) | inference | numerical issues are handled in mcmc | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L365) | inference | mcmc works in parallel | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L398) | inference | mcmc errors for invalid parallel plans | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L431) | inference | parallel reporting works | SKIPPED | 1 | 0.100 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L448) | inference | initials works | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L467) | inference | prep_initials errors informatively | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L516) | inference | samplers print informatively | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L537) | inference | pb_update \> thin to avoid bursts with no saved iterations | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_install_greta_deps.R](testthat/test_install_greta_deps.R#L2) | install_greta_deps | install_greta_deps errors appropriately | SKIPPED | 1 | 0.218 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L2) | joint | continuous joint variables can be sampled from | SKIPPED | 1 | 0.125 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L14) | joint | truncated continuous joint variables can be sampled from | SKIPPED | 1 | 0.124 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L26) | joint | uniform joint variables can be sampled from | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L38) | joint | joint normals with different truncation types can be sampled | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L50) | joint | fixed continuous joint distributions can be sampled from | SKIPPED | 1 | 0.107 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L64) | joint | fixed discrete joint distributions can be sampled from | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L79) | joint | joint of fixed and continuous distributions errors | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L90) | joint | joint with insufficient distributions errors | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L102) | joint | joint with non-scalar distributions errors | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L113) | joint | joint of normals has correct density | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L148) | joint | joint of truncated normals has correct density | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L197) | joint | joint of uniforms has correct density | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_joint.R](testthat/test_joint.R#L237) | joint | joint of Poissons has correct density | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L2) | misc | check_tf_version works | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L24) | misc | .onLoad runs | SKIPPED | 1 | 0.108 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L30) | misc | tensorflow coercion works | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L43) | misc | all_greta_arrays works | SKIPPED | 1 | 0.210 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L58) | misc | greta_model objects print | SKIPPED | 1 | 0.129 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L66) | misc | define and mcmc error informatively | SKIPPED | 1 | 0.118 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L117) | misc | check_dims errors informatively | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L157) | misc | disjoint graphs are checked | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L182) | misc | plotting models doesnโ€™t error | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L193) | misc | structures work correctly | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L206) | misc | cleanly() handles TF errors nicely | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L230) | misc | double precision works for all jacobians | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_misc.R](testthat/test_misc.R#L261) | misc | module works | PASS | 4 | 0.017 | | | [test_mixture.R](testthat/test_mixture.R#L2) | mixture | continuous mixture variables can be sampled from | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L15) | mixture | fixed continuous mixture distributions can be sampled from | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L29) | mixture | fixed discrete mixture distributions can be sampled from | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L43) | mixture | mixtures of fixed and continuous distributions errors | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L56) | mixture | mixtures of multivariate and univariate errors | SKIPPED | 1 | 0.114 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L69) | mixture | mixtures of supports errors | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L93) | mixture | incorrectly-shaped weights errors | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L106) | mixture | mixtures with insufficient distributions errors | SKIPPED | 1 | 0.200 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L124) | mixture | mixture of normals has correct density | SKIPPED | 1 | 0.132 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L161) | mixture | mixture of truncated normals has correct density | SKIPPED | 1 | 0.122 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L206) | mixture | mixture of Poissons has correct density | SKIPPED | 1 | 0.121 | ๐Ÿ”ถ | | [test_mixture.R](testthat/test_mixture.R#L242) | mixture | mixture of normals with varying weights has correct density | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_operators.R](testthat/test_operators.R#L2) | operators | arithmetic operators work as expected | SKIPPED | 1 | 0.118 | ๐Ÿ”ถ | | [test_operators.R](testthat/test_operators.R#L19) | operators | arithmetic operators work as expected with arrays and scalars | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_operators.R](testthat/test_operators.R#L34) | operators | logical operators work as expected | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_operators.R](testthat/test_operators.R#L47) | operators | relational operators work as expected | SKIPPED | 1 | 0.222 | ๐Ÿ”ถ | | [test_operators.R](testthat/test_operators.R#L61) | operators | random strings of operators work as expected | SKIPPED | 1 | 0.123 | ๐Ÿ”ถ | | [test_operators.R](testthat/test_operators.R#L95) | operators | %\*% errors informatively | SKIPPED | 1 | 0.126 | ๐Ÿ”ถ | | [test_opt.R](testthat/test_opt.R#L4) | opt | opt converges with TF optimisers | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_opt.R](testthat/test_opt.R#L40) | opt | opt converges with SciPy optimisers | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_opt.R](testthat/test_opt.R#L95) | opt | opt accepts initial values | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_opt.R](testthat/test_opt.R#L115) | opt | opt returns hessians | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L2) | posteriors | posterior is correct (binomial) | SKIPPED | 1 | 0.207 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L36) | posteriors | samplers are unbiased for bivariate normals | SKIPPED | 1 | 0.127 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L46) | posteriors | samplers are unbiased for chi-squared | SKIPPED | 1 | 0.122 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L58) | posteriors | samplers are unbiased for standard uniform | SKIPPED | 1 | 0.118 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L69) | posteriors | samplers are unbiased for LKJ | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L82) | posteriors | samplers are unbiased for Wishart | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L100) | posteriors | samplers pass geweke tests | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L2) | representations | log and exp function representations work | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L28) | representations | chol & chol2inv function representation works | SKIPPED | 1 | 0.115 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L55) | representations | bernoulli prob representations have correct density | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L87) | representations | binomial prob representations have correct density | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L130) | representations | poisson lambda representation has correct density | SKIPPED | 1 | 0.110 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L155) | representations | mvn Sigma representation has correct density | SKIPPED | 1 | 0.105 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L191) | representations | wishart target and Sigma representations have correct density | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L250) | representations | lkj target representation has correct density | SKIPPED | 1 | 0.101 | ๐Ÿ”ถ | | [test_simulate.R](testthat/test_simulate.R#L2) | simulate | simulate produces the right number of samples | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_simulate.R](testthat/test_simulate.R#L20) | simulate | simulate uses the local RNG seed | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_simulate.R](testthat/test_simulate.R#L56) | simulate | simulate errors if distribution-free variables are not fixed | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_simulate.R](testthat/test_simulate.R#L69) | simulate | simulate errors if a distribution cannot be sampled from | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test_simulate.R](testthat/test_simulate.R#L84) | simulate | simulate errors nicely if nsim is invalid | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_syntax.R](testthat/test_syntax.R#L2) | syntax | `distribution<-` works in models | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_syntax.R](testthat/test_syntax.R#L15) | syntax | distribution() works | SKIPPED | 1 | 0.215 | ๐Ÿ”ถ | | [test_syntax.R](testthat/test_syntax.R#L33) | syntax | `distribution<-` errors informatively | SKIPPED | 1 | 0.124 | ๐Ÿ”ถ | | [test_syntax.R](testthat/test_syntax.R#L94) | syntax | distribution() errors informatively | SKIPPED | 1 | 0.129 | ๐Ÿ”ถ | | [test_transforms.R](testthat/test_transforms.R#L2) | transforms | transformations work as expected | SKIPPED | 1 | 0.107 | ๐Ÿ”ถ | | [test_transforms.R](testthat/test_transforms.R#L30) | transforms | imultilogit errors informatively | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L4) | truncated | truncated normal has correct densities | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L48) | truncated | truncated lognormal has correct densities | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L92) | truncated | truncated gamma has correct densities | SKIPPED | 1 | 0.199 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L136) | truncated | truncated inverse gamma has correct densities | SKIPPED | 1 | 0.126 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L186) | truncated | truncated weibull has correct densities | SKIPPED | 1 | 0.124 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L230) | truncated | truncated exponential has correct densities | SKIPPED | 1 | 0.123 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L262) | truncated | truncated pareto has correct densities | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L315) | truncated | truncated student has correct densities | SKIPPED | 1 | 0.114 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L368) | truncated | truncated laplace has correct densities | SKIPPED | 1 | 0.103 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L416) | truncated | truncated beta has correct densities | SKIPPED | 1 | 0.106 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L460) | truncated | truncated cauchy has correct densities | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L504) | truncated | truncated logistic has correct densities | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L548) | truncated | truncated f has correct densities | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L592) | truncated | truncated chi squared has correct densities | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test_truncated.R](testthat/test_truncated.R#L624) | truncated | bad truncations error | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L2) | variables | variable() errors informatively | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L33) | variables | constrained variable constructors error informatively | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L60) | variables | variable() with universal bounds can be sampled correctly | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L79) | variables | variable() with vectorised bounds can be sampled correctly | SKIPPED | 1 | 0.134 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L100) | variables | cholesky_variable() can be sampled correctly | SKIPPED | 1 | 0.197 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L119) | variables | cholesky_variable() correlation can be sampled correctly | SKIPPED | 1 | 0.137 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L144) | variables | simplex_variable() can be sampled correctly | SKIPPED | 1 | 0.122 | ๐Ÿ”ถ | | [test_variables.R](testthat/test_variables.R#L163) | variables | ordered_variable() can be sampled correctly | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test-diagrammer-installed.R](testthat/test-diagrammer-installed.R#L2) | diagrammer-installed | DiagrammeR installation is checked | SKIPPED | 1 | 0.115 | ๐Ÿ”ถ | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L2_L4) | message_if_using_gpu | message_if_using_gpu gives the correct message for cpu or gpu use | ERROR | 1 | 0.082 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L15_L17) | message_if_using_gpu | message_if_using_gpu does not message when option set | ERROR | 0 | 0.011 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L26_L28) | message_if_using_gpu | message_if_using_gpu does message when option set | ERROR | 0 | 0.010 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L34) | message_if_using_gpu | is_using_gpu and is_using_cpu work | ERROR | 0 | 0.007 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L42) | message_if_using_gpu | calculate provides a message when GPU is set | SKIPPED | 1 | 0.119 | ๐Ÿ”ถ | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L56) | message_if_using_gpu | calculate/mcmc does not message when option set | SKIPPED | 1 | 0.197 | ๐Ÿ”ถ | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L79) | message_if_using_gpu | calculate/mcmc does message when option set | SKIPPED | 1 | 0.131 | ๐Ÿ”ถ | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L102) | message_if_using_gpu | mcmc provides a message when GPU is set | SKIPPED | 1 | 0.130 | ๐Ÿ”ถ | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L4) | tensorflow-rpkg-stability | tensorflow returns appropriate thing with โ€˜dimโ€™ | SKIPPED | 1 | 0.112 | ๐Ÿ”ถ | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L19) | tensorflow-rpkg-stability | Tensor behaves as we expect | SKIPPED | 1 | 0.113 | ๐Ÿ”ถ | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L29) | tensorflow-rpkg-stability | shape returns right thing | SKIPPED | 1 | 0.102 | ๐Ÿ”ถ | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L75) | tensorflow-rpkg-stability | TensorShape conversions remain stable | SKIPPED | 1 | 0.104 | ๐Ÿ”ถ | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L85) | tensorflow-rpkg-stability | shape returns appropriate TensorShape object | SKIPPED | 1 | 0.111 | ๐Ÿ”ถ | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L106) | tensorflow-rpkg-stability | \[, \[\[, and assignment returns right object | SKIPPED | 1 | 0.219 | ๐Ÿ”ถ | | Failed | Warning | Skipped | |:-------|:--------|:--------| | ๐Ÿ›‘ | โš ๏ธ | ๐Ÿ”ถ |
Session Info | Field | Value | |:---------|:---------------------------------| | Version | R version 4.2.1 (2022-06-23) | | Platform | x86_64-apple-darwin17.0 (64-bit) | | Running | macOS Big Sur 11.7.2 | | Language | en_US | | Timezone | America/New_York | | Package | Version | |:---------|:--------| | testthat | 3.1.4 | | covr | 3.6.1 | | covrpage | 0.2 |
njtierney commented 1 year ago

Hi @yonicd !

Thank you very much for your help here, I really appreciate it! This has been really helpful in other packages I develop.

Alas, I still get this error:

Warning messages:
1: closing unused connection 7 (<-localhost:11642) 
2: closing unused connection 6 (<-localhost:11642) 

Looking at your tests above, it looks like a lot of the tests were skipped because the TF dependency wasn't installed - so perhaps I'm running into this issue because of some TF problem?

No worries if this is looking too complicated to solve, it's a super useful package that I'm really enjoying using in my other software :) so please feel free to close this issue

yonicd commented 1 year ago

Just to check something on your end. Is it winos or linux? if itโ€™s winos you need to be sure the package isnโ€™t loaded prior to running covrpage (there is an issue in covr that jim explained that winos is funky in this regards) . I tried to force an unload of the package covrpage is running against in the last commit.

yonicd commented 1 year ago

@njtierney greta looks amazing ( i installed tensorflow ), you may have won over a new user.

i think i found the underlying issues.

on the side of covrpage

on the side of greta

the expectations are failing but so is the call itself. covrpage will try to comment out expectations so they are skipped by covr, but leaves the non-expectation lines alone.

eg

test_that("parallel reporting works", {
  skip_if_not(check_tf_version())

  m <- model(normal(0, 1))

  op <- future::plan()
  # put the future plan back as we found it
  withr::defer(future::plan(op))
  future::plan(future::multisession)

  # should report each sampler's progress with a fraction
  out <- get_output(. <- mcmc(m, warmup = 50, n_samples = 50, chains = 2))
#  expect_match(out, "2 samplers in parallel")
#  expect_match(out, "50/50")

})

where the error is (lines mismatch with master because i'm running off of a branch tf2-poke-tf-fun)

Error (test_inference.R:441): parallel reporting works
<Rcpp::exception/C++Error/error/condition>
Error in `eval(expr, p)`: ValueError: Attempt to convert a value (None) with an unsupported type (<class 'NoneType'>) to a Tensor.

Backtrace:
  1. greta:::get_output(...)
       at test_inference.R:441:2
  5. greta::mcmc(m, warmup = 50, n_samples = 50, chains = 2)
 11. greta:::run_samplers(...)
       at greta/R/inference.R:284:4
 12. base::lapply(samplers, future::value)
       at greta/R/inference.R:447:4
 14. future:::value.Future(X[[i]], ...)
 15. future:::signalConditions(...)

as you know covr is much more sensitive than testthat calls. For some reason testthat continues on after that line fails, where covr is borking on it.

if i comment out that line then everything runs fine and covrpage complete its run skipping over the offending expectations it finds.

you can also restructure the test like so and it will also get the same desired effect

test_that("parallel reporting works", {
  skip_if_not(check_tf_version())

  m <- model(normal(0, 1))

  op <- future::plan()
  # put the future plan back as we found it
  withr::defer(future::plan(op))
  future::plan(future::multisession)

  # should report each sampler's progress with a fraction
  #out <- get_output(. <- mcmc(m, warmup = 50, n_samples = 50, chains = 2))
  expect_match(get_output(. <- mcmc(m, warmup = 50, n_samples = 50, chains = 2)), "2 samplers in parallel")
  expect_match(get_output(. <- mcmc(m, warmup = 50, n_samples = 50, chains = 2)), "50/50")

})
covrpage readme Tests and Coverage ================ 15 February, 2023 06:46:43 - Coverage - Unit Tests This output is created by [covrpage](https://github.com/yonicd/covrpage). ## Coverage Coverage summary is created using the [covr](https://github.com/r-lib/covr) package. ## โš ๏ธ Not All Tests Passed ## Coverage statistics are approximations of the non-failing tests. ## Use with caution ## ## For further investigation check in testthat summary tables. | Object | Coverage (%) | |:------------------------------------------------------------------|:------------:| | greta | 62.14 | | [R/callbacks.R](../R/callbacks.R) | 0.00 | | [R/greta_create_conda_env.R](../R/greta_create_conda_env.R) | 0.00 | | [R/greta_install_miniconda.R](../R/greta_install_miniconda.R) | 0.00 | | [R/greta_stash.R](../R/greta_stash.R) | 0.00 | | [R/optimisers.R](../R/optimisers.R) | 0.00 | | [R/reinstallers.R](../R/reinstallers.R) | 0.00 | | [R/simulate.R](../R/simulate.R) | 0.00 | | [R/zzz.R](../R/zzz.R) | 0.00 | | [R/distribution.R](../R/distribution.R) | 21.25 | | [R/operators.R](../R/operators.R) | 21.82 | | [R/test_if_forked_cluster.R](../R/test_if_forked_cluster.R) | 22.22 | | [R/greta_model_class.R](../R/greta_model_class.R) | 24.12 | | [R/transforms.R](../R/transforms.R) | 29.63 | | [R/chol2symm.R](../R/chol2symm.R) | 33.33 | | [R/install_greta_deps.R](../R/install_greta_deps.R) | 33.33 | | [R/conda_greta_env.R](../R/conda_greta_env.R) | 40.00 | | [R/variable.R](../R/variable.R) | 41.24 | | [R/as_data.R](../R/as_data.R) | 41.67 | | [R/greta_array_class.R](../R/greta_array_class.R) | 43.45 | | [R/utils.R](../R/utils.R) | 52.94 | | [R/new_install_process.R](../R/new_install_process.R) | 53.12 | | [R/mixture.R](../R/mixture.R) | 53.16 | | [R/inference_class.R](../R/inference_class.R) | 55.02 | | [R/samplers.R](../R/samplers.R) | 57.14 | | [R/greta_install_python_deps.R](../R/greta_install_python_deps.R) | 60.71 | | [R/greta_mcmc_list.R](../R/greta_mcmc_list.R) | 63.64 | | [R/functions.R](../R/functions.R) | 64.91 | | [R/inference.R](../R/inference.R) | 65.82 | | [R/dag_class.R](../R/dag_class.R) | 67.07 | | [R/extract_replace_combine.R](../R/extract_replace_combine.R) | 68.07 | | [R/checkers.R](../R/checkers.R) | 69.11 | | [R/unknowns_class.R](../R/unknowns_class.R) | 69.23 | | [R/node_class.R](../R/node_class.R) | 72.31 | | [R/progress_bar.R](../R/progress_bar.R) | 78.12 | | [R/calculate.R](../R/calculate.R) | 82.39 | | [R/node_types.R](../R/node_types.R) | 83.79 | | [R/probability_distributions.R](../R/probability_distributions.R) | 87.54 | | [R/tf_functions.R](../R/tf_functions.R) | 88.98 | | [R/structures.R](../R/structures.R) | 93.33 | | [R/testthat-helpers.R](../R/testthat-helpers.R) | 98.31 | | [R/joint.R](../R/joint.R) | 98.78 |
## Unit Tests Unit Test summary is created using the [testthat](https://github.com/r-lib/testthat) package. | file | n | time | error | failed | skipped | warning | icon | |:------------------------------------------------------------------------------|----:|--------:|------:|-------:|--------:|--------:|:-----| | [test_as_data.R](testthat/test_as_data.R) | 52 | 1.653 | 0 | 0 | 0 | 0 | | | [test_calculate.R](testthat/test_calculate.R) | 80 | 45.156 | 1 | 0 | 0 | 0 | | | [test_check_tf_installed.R](testthat/test_check_tf_installed.R) | 6 | 0.028 | 0 | 0 | 0 | 0 | | | [test_distributions.R](testthat/test_distributions.R) | 208 | 256.632 | 0 | 0 | 0 | 0 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R) | 223 | 32.012 | 0 | 0 | 0 | 0 | | | [test_functions.R](testthat/test_functions.R) | 454 | 41.168 | 0 | 0 | 0 | 0 | | | [test_future.R](testthat/test_future.R) | 2 | 2.939 | 1 | 1 | 0 | 0 | ๐Ÿ›‘ | | [test_greta_array_class.R](testthat/test_greta_array_class.R) | 11 | 0.915 | 0 | 0 | 0 | 0 | | | [test_greta_mcmc_list_class.R](testthat/test_greta_mcmc_list_class.R) | 23 | 12.820 | 0 | 0 | 0 | 0 | | | [test_head_tail_work.R](testthat/test_head_tail_work.R) | 18 | 1.295 | 0 | 0 | 0 | 0 | | | [test_iid_samples.R](testthat/test_iid_samples.R) | 39 | 15.392 | 0 | 0 | 0 | 0 | | | [test_inference.R](testthat/test_inference.R) | 54 | 119.639 | 4 | 9 | 1 | 0 | ๐Ÿ›‘๐Ÿ”ถ | | [test_install_greta_deps.R](testthat/test_install_greta_deps.R) | 1 | 2.388 | 0 | 0 | 0 | 0 | | | [test_joint.R](testthat/test_joint.R) | 14 | 36.570 | 0 | 0 | 0 | 0 | | | [test_misc.R](testthat/test_misc.R) | 41 | 18.709 | 0 | 0 | 0 | 0 | | | [test_mixture.R](testthat/test_mixture.R) | 14 | 17.054 | 0 | 0 | 0 | 0 | | | [test_operators.R](testthat/test_operators.R) | 91 | 12.648 | 0 | 0 | 0 | 0 | | | [test_opt.R](testthat/test_opt.R) | 1 | 2.504 | 4 | 0 | 0 | 0 | | | [test_posteriors.R](testthat/test_posteriors.R) | 7 | 0.030 | 0 | 0 | 7 | 0 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R) | 13 | 1.446 | 0 | 0 | 0 | 0 | | | [test_simulate.R](testthat/test_simulate.R) | 14 | 5.823 | 0 | 0 | 0 | 0 | | | [test_syntax.R](testthat/test_syntax.R) | 15 | 6.860 | 0 | 0 | 0 | 0 | | | [test_transforms.R](testthat/test_transforms.R) | 19 | 2.809 | 0 | 0 | 0 | 0 | | | [test_truncated.R](testthat/test_truncated.R) | 58 | 4.347 | 0 | 0 | 0 | 0 | | | [test_variables.R](testthat/test_variables.R) | 18 | 84.225 | 0 | 0 | 0 | 0 | | | [test-diagrammer-installed.R](testthat/test-diagrammer-installed.R) | 1 | 0.004 | 0 | 0 | 1 | 0 | ๐Ÿ”ถ | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R) | 16 | 15.007 | 0 | 0 | 0 | 0 | | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R) | 53 | 2.926 | 0 | 0 | 0 | 0 | |
Show Detailed Test Results | file | context | test | status | n | time | icon | |:------------------------------------------------------------------------------------|:--------------------------|:---------------------------------------------------------------------------------------|:--------|----:|--------:|:-----| | [test_as_data.R](testthat/test_as_data.R#L13) | as_data | as_data coerces correctly | PASS | 39 | 0.408 | | | [test_as_data.R](testthat/test_as_data.R#L111_L113) | as_data | as_data errors informatively | PASS | 13 | 1.245 | | | [test_calculate.R](testthat/test_calculate.R#L9) | calculate | deterministic calculate works with correct lists | PASS | 3 | 0.889 | | | [test_calculate.R](testthat/test_calculate.R#L43) | calculate | stochastic calculate works with correct lists | PASS | 12 | 6.501 | | | [test_calculate.R](testthat/test_calculate.R#L116) | calculate | deterministic calculate works with greta_mcmc_list objects | PASS | 6 | 6.769 | | | [test_calculate.R](testthat/test_calculate.R#L149) | calculate | calculate with greta_mcmc_list doesnโ€™t mix up variables | PASS | 2 | 7.131 | | | [test_calculate.R](testthat/test_calculate.R#L162) | calculate | calculate with greta_mcmc_list doesnโ€™t lose track of new nodes | PASS | 4 | 4.097 | | | [test_calculate.R](testthat/test_calculate.R#L192_L194) | calculate | stochastic calculate works with greta_mcmc_list objects | PASS | 11 | 3.591 | | | [test_calculate.R](testthat/test_calculate.R#L248_L250) | calculate | calculate errors if the mcmc samples unrelated to target | PASS | 1 | 2.656 | | | [test_calculate.R](testthat/test_calculate.R#L279_L281) | calculate | stochastic calculate works with mcmc samples & new stochastics | PASS | 3 | 2.874 | | | [test_calculate.R](testthat/test_calculate.R#L297_L299) | calculate | calculate errors nicely if non-greta arrays are passed | PASS | 2 | 0.300 | | | [test_calculate.R](testthat/test_calculate.R#L317_L319) | calculate | calculate errors nicely if values for stochastics not passed | PASS | 2 | 0.166 | | | [test_calculate.R](testthat/test_calculate.R#L334_L336) | calculate | calculate errors nicely if values have incorrect dimensions | PASS | 1 | 0.074 | | | [test_calculate.R](testthat/test_calculate.R#L357) | calculate | calculate works with variable batch sizes | PASS | 6 | 4.111 | | | [test_calculate.R](testthat/test_calculate.R#L379_L381) | calculate | calculate errors nicely with invalid batch sizes | PASS | 3 | 2.776 | | | [test_calculate.R](testthat/test_calculate.R#L400) | calculate | calculate returns a named list | PASS | 5 | 0.108 | | | [test_calculate.R](testthat/test_calculate.R#L425) | calculate | calculate produces the right number of samples | PASS | 8 | 1.928 | | | [test_calculate.R](testthat/test_calculate.R#L470) | calculate | calculate uses the local RNG seed | PASS | 5 | 0.675 | | | [test_calculate.R](testthat/test_calculate.R#L503) | calculate | when calculate simulates multiple values, they are calculated using the same RNG seeds | ERROR | 0 | 0.078 | | | [test_calculate.R](testthat/test_calculate.R#L515) | calculate | calculate works if distribution-free variables are fixed | PASS | 1 | 0.048 | | | [test_calculate.R](testthat/test_calculate.R#L525_L527) | calculate | calculate errors if distribution-free variables are not fixed | PASS | 1 | 0.081 | | | [test_calculate.R](testthat/test_calculate.R#L536_L538) | calculate | calculate errors if a distribution cannot be sampled from | PASS | 1 | 0.108 | | | [test_calculate.R](testthat/test_calculate.R#L546_L548) | calculate | calculate errors nicely if nsim is invalid | PASS | 3 | 0.195 | | | [test_check_tf_installed.R](testthat/test_check_tf_installed.R#L3) | check_tf_installed | Config/reticulate: has installed python and tf and tfp | PASS | 4 | 0.022 | | | [test_check_tf_installed.R](testthat/test_check_tf_installed.R#L12) | check_tf_installed | TF version is at least version 2.9.0 | PASS | 1 | 0.003 | | | [test_check_tf_installed.R](testthat/test_check_tf_installed.R#L18) | check_tf_installed | TFP version is at least version 1.18.0 | PASS | 1 | 0.003 | | | [test_distributions.R](testthat/test_distributions.R#L4_L9) | distributions | normal distribution has correct density | PASS | 1 | 0.066 | | | [test_distributions.R](testthat/test_distributions.R#L16_L25) | distributions | multidimensional normal distribution has correct density | PASS | 1 | 0.061 | | | [test_distributions.R](testthat/test_distributions.R#L31_L36) | distributions | uniform distribution has correct density | PASS | 1 | 0.073 | | | [test_distributions.R](testthat/test_distributions.R#L42_L47) | distributions | lognormal distribution has correct density | PASS | 1 | 0.071 | | | [test_distributions.R](testthat/test_distributions.R#L53_L58) | distributions | bernoulli distribution has correct density | PASS | 1 | 0.123 | | | [test_distributions.R](testthat/test_distributions.R#L64_L69) | distributions | binomial distribution has correct density | PASS | 1 | 0.171 | | | [test_distributions.R](testthat/test_distributions.R#L75_L84) | distributions | beta-binomial distribution has correct density | PASS | 1 | 0.096 | | | [test_distributions.R](testthat/test_distributions.R#L90_L95) | distributions | negative binomial distribution has correct density | PASS | 1 | 0.065 | | | [test_distributions.R](testthat/test_distributions.R#L101_L106) | distributions | hypergeometric distribution has correct density | PASS | 1 | 0.088 | | | [test_distributions.R](testthat/test_distributions.R#L112_L117) | distributions | poisson distribution has correct density | PASS | 1 | 0.056 | | | [test_distributions.R](testthat/test_distributions.R#L123_L128) | distributions | gamma distribution has correct density | PASS | 1 | 0.069 | | | [test_distributions.R](testthat/test_distributions.R#L134_L139) | distributions | inverse gamma distribution has correct density | PASS | 1 | 0.062 | | | [test_distributions.R](testthat/test_distributions.R#L145_L153) | distributions | weibull distribution has correct density | PASS | 1 | 0.070 | | | [test_distributions.R](testthat/test_distributions.R#L159_L164) | distributions | exponential distribution has correct density | PASS | 1 | 0.051 | | | [test_distributions.R](testthat/test_distributions.R#L170_L175) | distributions | pareto distribution has correct density | PASS | 1 | 0.550 | | | [test_distributions.R](testthat/test_distributions.R#L183_L192) | distributions | student distribution has correct density | PASS | 1 | 0.283 | | | [test_distributions.R](testthat/test_distributions.R#L198_L203) | distributions | laplace distribution has correct density | PASS | 1 | 0.090 | | | [test_distributions.R](testthat/test_distributions.R#L209_L217) | distributions | beta distribution has correct density | PASS | 1 | 0.086 | | | [test_distributions.R](testthat/test_distributions.R#L223_L231) | distributions | cauchy distribution has correct density | PASS | 1 | 0.082 | | | [test_distributions.R](testthat/test_distributions.R#L237_L245) | distributions | logistic distribution has correct density | PASS | 1 | 0.079 | | | [test_distributions.R](testthat/test_distributions.R#L251_L256) | distributions | f distribution has correct density | PASS | 1 | 0.103 | | | [test_distributions.R](testthat/test_distributions.R#L262_L267) | distributions | chi squared distribution has correct density | PASS | 1 | 0.071 | | | [test_distributions.R](testthat/test_distributions.R#L283_L289) | distributions | multivariate normal distribution has correct density | PASS | 1 | 0.497 | | | [test_distributions.R](testthat/test_distributions.R#L310_L322) | distributions | Wishart distribution has correct density | PASS | 10 | 0.602 | | | [test_distributions.R](testthat/test_distributions.R#L354_L363) | distributions | lkj distribution has correct density | PASS | 10 | 0.543 | | | [test_distributions.R](testthat/test_distributions.R#L379_L388) | distributions | multinomial distribution has correct density | PASS | 1 | 0.313 | | | [test_distributions.R](testthat/test_distributions.R#L403_L409) | distributions | categorical distribution has correct density | PASS | 1 | 0.197 | | | [test_distributions.R](testthat/test_distributions.R#L418_L424) | distributions | dirichlet distribution has correct density | PASS | 1 | 0.169 | | | [test_distributions.R](testthat/test_distributions.R#L435_L448) | distributions | dirichlet-multinomial distribution has correct density | PASS | 1 | 0.178 | | | [test_distributions.R](testthat/test_distributions.R#L461) | distributions | scalar-valued distributions can be defined in models | PASS | 29 | 2.033 | | | [test_distributions.R](testthat/test_distributions.R#L536) | distributions | array-valued distributions can be defined in models | PASS | 29 | 1.957 | | | [test_distributions.R](testthat/test_distributions.R#L616) | distributions | distributions can be sampled from by MCMC | PASS | 32 | 200.950 | | | [test_distributions.R](testthat/test_distributions.R#L703_L705) | distributions | uniform distribution errors informatively | PASS | 5 | 0.555 | | | [test_distributions.R](testthat/test_distributions.R#L731_L733) | distributions | poisson() and binomial() error informatively in glm | PASS | 4 | 0.287 | | | [test_distributions.R](testthat/test_distributions.R#L757_L760) | distributions | wishart distribution errors informatively | PASS | 3 | 0.333 | | | [test_distributions.R](testthat/test_distributions.R#L777_L780) | distributions | lkj_correlation distribution errors informatively | PASS | 7 | 0.467 | | | [test_distributions.R](testthat/test_distributions.R#L821_L824) | distributions | multivariate_normal distribution errors informatively | PASS | 13 | 0.872 | | | [test_distributions.R](testthat/test_distributions.R#L891_L894) | distributions | multinomial distribution errors informatively | PASS | 9 | 0.585 | | | [test_distributions.R](testthat/test_distributions.R#L944_L947) | distributions | categorical distribution errors informatively | PASS | 7 | 0.430 | | | [test_distributions.R](testthat/test_distributions.R#L985_L988) | distributions | dirichlet distribution errors informatively | PASS | 7 | 0.631 | | | [test_distributions.R](testthat/test_distributions.R#L1030) | distributions | dirichlet values sum to one | PASS | 1 | 12.089 | | | [test_distributions.R](testthat/test_distributions.R#L1040_L1043) | distributions | dirichlet-multinomial distribution errors informatively | PASS | 9 | 0.426 | | | [test_distributions.R](testthat/test_distributions.R#L1092) | distributions | Wishart can use a choleskied Sigma | PASS | 1 | 12.468 | | | [test_distributions.R](testthat/test_distributions.R#L1106) | distributions | multivariate distribs with matrix params can be sampled from | PASS | 5 | 17.584 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L10) | extract_replace_combine | extract works like R | PASS | 28 | 0.873 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L64_L67) | extract_replace_combine | replace works like R | PASS | 37 | 4.839 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L312) | extract_replace_combine | rep works like R | PASS | 48 | 4.162 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L352) | extract_replace_combine | rbind, cbind and c work like R | PASS | 36 | 3.984 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L378) | extract_replace_combine | abind works like R | PASS | 12 | 1.269 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L391_L393) | extract_replace_combine | abind errors informatively | PASS | 2 | 0.136 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L408) | extract_replace_combine | rbind and cbind can prepend R arrays to greta arrays | PASS | 8 | 0.034 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L428_L430) | extract_replace_combine | assign errors on variable greta arrays | PASS | 1 | 0.164 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L439_L441) | extract_replace_combine | rbind and cbind give informative error messages | PASS | 2 | 0.139 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L452_L454) | extract_replace_combine | replacement gives informative error messages | PASS | 3 | 0.164 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L470_L472) | extract_replace_combine | extraction gives informative error messages | PASS | 2 | 0.100 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L485) | extract_replace_combine | stochastic and operation greta arrays can be extracted | PASS | 2 | 0.029 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L499) | extract_replace_combine | extract, replace, combine work in models | PASS | 3 | 10.643 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L525) | extract_replace_combine | length and dim work | PASS | 6 | 0.043 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L541) | extract_replace_combine | dim\<- works | PASS | 9 | 0.680 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L560) | extract_replace_combine | greta_array() reshapes array-like greta arrays like array | PASS | 3 | 0.121 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L586) | extract_replace_combine | greta_array() reshapes scalar greta arrays like array | PASS | 3 | 0.116 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L606_L608) | extract_replace_combine | dim\<- errors as expected | PASS | 4 | 0.264 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L641) | extract_replace_combine | dim\<- works in a model | PASS | 2 | 4.195 | | | [test_extract_replace_combine.R](testthat/test_extract_replace_combine.R#L653) | extract_replace_combine | c handles NULLs and lists | PASS | 12 | 0.057 | | | [test_functions.R](testthat/test_functions.R#L16) | functions | simple functions work as expected | PASS | 57 | 4.977 | | | [test_functions.R](testthat/test_functions.R#L55) | functions | primitive functions work as expected | PASS | 36 | 2.267 | | | [test_functions.R](testthat/test_functions.R#L78_L80) | functions | cummax and cummin functions error informatively | PASS | 2 | 3.651 | | | [test_functions.R](testthat/test_functions.R#L92_L94) | functions | complex number functions error informatively | PASS | 5 | 0.709 | | | [test_functions.R](testthat/test_functions.R#L108) | functions | matrix functions work as expected | PASS | 58 | 5.933 | | | [test_functions.R](testthat/test_functions.R#L143) | functions | kronecker works with greta and base array arguments | PASS | 4 | 0.082 | | | [test_functions.R](testthat/test_functions.R#L157) | functions | aperm works as expected | PASS | 18 | 1.152 | | | [test_functions.R](testthat/test_functions.R#L173) | functions | reducing functions work as expected | PASS | 40 | 5.021 | | | [test_functions.R](testthat/test_functions.R#L202) | functions | cumulative functions work as expected | PASS | 6 | 0.371 | | | [test_functions.R](testthat/test_functions.R#L227) | functions | apply works as expected | PASS | 168 | 14.251 | | | [test_functions.R](testthat/test_functions.R#L242) | functions | tapply works as expected | PASS | 5 | 0.126 | | | [test_functions.R](testthat/test_functions.R#L257_L259) | functions | cumulative functions error as expected | PASS | 4 | 0.232 | | | [test_functions.R](testthat/test_functions.R#L291) | functions | sweep works as expected | PASS | 8 | 0.225 | | | [test_functions.R](testthat/test_functions.R#L305) | functions | sweep works for numeric x and greta array STATS | PASS | 2 | 0.028 | | | [test_functions.R](testthat/test_functions.R#L322_L324) | functions | solve and sweep and kronecker error as expected | PASS | 12 | 0.718 | | | [test_functions.R](testthat/test_functions.R#L388_L390) | functions | colSums etc. error as expected | PASS | 4 | 0.208 | | | [test_functions.R](testthat/test_functions.R#L413_L415) | functions | forwardsolve and backsolve error as expected | PASS | 4 | 0.237 | | | [test_functions.R](testthat/test_functions.R#L440_L442) | functions | tapply errors as expected | PASS | 2 | 0.108 | | | [test_functions.R](testthat/test_functions.R#L464) | functions | eigen works as expected | PASS | 3 | 0.078 | | | [test_functions.R](testthat/test_functions.R#L500_L502) | functions | ignored options are errored/warned about | PASS | 5 | 0.275 | | | [test_functions.R](testthat/test_functions.R#L528_L530) | functions | incorrect dimensions are errored about | PASS | 9 | 0.490 | | | [test_functions.R](testthat/test_functions.R#L572) | functions | chol2symm inverts chol | PASS | 2 | 0.029 | | | [test_future.R](testthat/test_future.R#L8) | future | check_future_plan() works | PASS | 1 | 2.910 | | | [test_future.R](testthat/test_future.R#L22_L24) | future | mcmc errors for invalid parallel plans | ERROR | 1 | 0.029 | | | [test_greta_array_class.R](testthat/test_greta_array_class.R#L10_L12) | greta_array_class | print and summary work | PASS | 8 | 0.878 | | | [test_greta_array_class.R](testthat/test_greta_array_class.R#L65) | greta_array_class | as.matrix works | PASS | 3 | 0.037 | | | [test_greta_mcmc_list_class.R](testthat/test_greta_mcmc_list_class.R#L12) | greta_mcmc_list_class | draws and raw draws should have the right iteration numbering | PASS | 8 | 5.419 | | | [test_greta_mcmc_list_class.R](testthat/test_greta_mcmc_list_class.R#L39) | greta_mcmc_list_class | window works | PASS | 9 | 4.619 | | | [test_greta_mcmc_list_class.R](testthat/test_greta_mcmc_list_class.R#L84) | greta_mcmc_list_class | windowing does not have spooky effects | PASS | 6 | 2.782 | | | [test_head_tail_work.R](testthat/test_head_tail_work.R#L10) | head_tail_work | head and tail work | PASS | 18 | 1.295 | | | [test_iid_samples.R](testthat/test_iid_samples.R#L6_L9) | iid_samples | univariate samples are correct | PASS | 20 | 1.769 | | | [test_iid_samples.R](testthat/test_iid_samples.R#L114_L121) | iid_samples | truncated univariate samples are correct | PASS | 5 | 0.233 | | | [test_iid_samples.R](testthat/test_iid_samples.R#L171_L174) | iid_samples | multivariate samples are correct | PASS | 7 | 10.918 | | | [test_iid_samples.R](testthat/test_iid_samples.R#L215_L218) | iid_samples | joint samples are correct | PASS | 2 | 0.241 | | | [test_iid_samples.R](testthat/test_iid_samples.R#L248_L251) | iid_samples | mixture samples are correct | PASS | 3 | 2.053 | | | [test_iid_samples.R](testthat/test_iid_samples.R#L286_L291) | iid_samples | distributions without RNG error nicely | PASS | 2 | 0.178 | | | [test_inference.R](testthat/test_inference.R#L24) | inference | bad mcmc proposals are rejected | ERROR | 2 | 5.160 | | | [test_inference.R](testthat/test_inference.R#L68) | inference | mcmc works with verbosity and warmup | PASS | 1 | 3.111 | | | [test_inference.R](testthat/test_inference.R#L79_L81) | inference | mcmc works with cpu and gpu options | PASS | 2 | 4.511 | | | [test_inference.R](testthat/test_inference.R#L94_L96) | inference | mcmc prints out CPU and GPU text | PASS | 2 | 4.905 | | | [test_inference.R](testthat/test_inference.R#L111_L112) | inference | mcmc works with multiple chains | PASS | 2 | 6.656 | | | [test_inference.R](testthat/test_inference.R#L145_L150) | inference | mcmc handles initial values nicely | PASS | 3 | 4.799 | | | [test_inference.R](testthat/test_inference.R#L177) | inference | progress bar gives a range of messages | PASS | 3 | 0.146 | | | [test_inference.R](testthat/test_inference.R#L198) | inference | extra_samples works | PASS | 3 | 3.895 | | | [test_inference.R](testthat/test_inference.R#L221) | inference | trace_batch_size works | PASS | 3 | 4.390 | | | [test_inference.R](testthat/test_inference.R#L237) | inference | stashed_samples works | PASS | 5 | 3.768 | | | [test_inference.R](testthat/test_inference.R#L269) | inference | samples has object names | PASS | 2 | 5.611 | | | [test_inference.R](testthat/test_inference.R#L284_L286) | inference | model errors nicely | PASS | 1 | 0.087 | | | [test_inference.R](testthat/test_inference.R#L293_L297) | inference | mcmc supports rwmh sampler with normal proposals | FAILED | 1 | 0.497 | ๐Ÿ›‘ | | [test_inference.R](testthat/test_inference.R#L305_L309) | inference | mcmc supports rwmh sampler with uniform proposals | FAILED | 1 | 0.693 | ๐Ÿ›‘ | | [test_inference.R](testthat/test_inference.R#L317_L321) | inference | mcmc supports slice sampler with single precision models | FAILED | 1 | 0.828 | ๐Ÿ›‘ | | [test_inference.R](testthat/test_inference.R#L329_L335) | inference | mcmc doesnโ€™t support slice sampler with double precision models | FAILED | 1 | 0.797 | ๐Ÿ›‘ | | [test_inference.R](testthat/test_inference.R#L351_L353) | inference | numerical issues are handled in mcmc | ERROR | 1 | 28.431 | | | [test_inference.R](testthat/test_inference.R#L375_L379) | inference | mcmc works in parallel | ERROR | 1 | 18.819 | | | [test_inference.R](testthat/test_inference.R#L413_L415) | inference | mcmc errors for invalid parallel plans | ERROR | 1 | 12.026 | | | [test_inference.R](testthat/test_inference.R#L430_L445) | inference | parallel reporting works | SKIPPED | 1 | 3.346 | ๐Ÿ”ถ | | [test_inference.R](testthat/test_inference.R#L451_L453) | inference | initials works | PASS | 3 | 0.257 | | | [test_inference.R](testthat/test_inference.R#L478_L480) | inference | prep_initials errors informatively | PASS | 8 | 0.944 | | | [test_inference.R](testthat/test_inference.R#L518_L520) | inference | samplers print informatively | PASS | 4 | 0.225 | | | [test_inference.R](testthat/test_inference.R#L541_L544) | inference | pb_update \> thin to avoid bursts with no saved iterations | PASS | 2 | 5.737 | | | [test_install_greta_deps.R](testthat/test_install_greta_deps.R#L3_L6) | install_greta_deps | install_greta_deps errors appropriately | PASS | 1 | 2.388 | | | [test_joint.R](testthat/test_joint.R#L10) | joint | continuous joint variables can be sampled from | PASS | 1 | 3.819 | | | [test_joint.R](testthat/test_joint.R#L22) | joint | truncated continuous joint variables can be sampled from | PASS | 1 | 5.473 | | | [test_joint.R](testthat/test_joint.R#L34) | joint | uniform joint variables can be sampled from | PASS | 1 | 4.099 | | | [test_joint.R](testthat/test_joint.R#L46) | joint | joint normals with different truncation types can be sampled | PASS | 1 | 12.283 | | | [test_joint.R](testthat/test_joint.R#L60) | joint | fixed continuous joint distributions can be sampled from | PASS | 1 | 4.982 | | | [test_joint.R](testthat/test_joint.R#L75) | joint | fixed discrete joint distributions can be sampled from | PASS | 1 | 4.880 | | | [test_joint.R](testthat/test_joint.R#L81_L86) | joint | joint of fixed and continuous distributions errors | PASS | 1 | 0.090 | | | [test_joint.R](testthat/test_joint.R#L92_L94) | joint | joint with insufficient distributions errors | PASS | 2 | 0.155 | | | [test_joint.R](testthat/test_joint.R#L104_L109) | joint | joint with non-scalar distributions errors | PASS | 1 | 0.098 | | | [test_joint.R](testthat/test_joint.R#L140_L144) | joint | joint of normals has correct density | PASS | 1 | 0.140 | | | [test_joint.R](testthat/test_joint.R#L189_L193) | joint | joint of truncated normals has correct density | PASS | 1 | 0.162 | | | [test_joint.R](testthat/test_joint.R#L229_L233) | joint | joint of uniforms has correct density | PASS | 1 | 0.259 | | | [test_joint.R](testthat/test_joint.R#L260_L264) | joint | joint of Poissons has correct density | PASS | 1 | 0.130 | | | [test_misc.R](testthat/test_misc.R#L8_L10) | misc | check_tf_version works | PASS | 3 | 2.450 | | | [test_misc.R](testthat/test_misc.R#L26) | misc | .onLoad runs | PASS | 1 | 11.815 | | | [test_misc.R](testthat/test_misc.R#L37) | misc | tensorflow coercion works | PASS | 3 | 0.034 | | | [test_misc.R](testthat/test_misc.R#L53) | misc | all_greta_arrays works | PASS | 2 | 0.038 | | | [test_misc.R](testthat/test_misc.R#L62) | misc | greta_model objects print | PASS | 1 | 0.084 | | | [test_misc.R](testthat/test_misc.R#L72_L74) | misc | define and mcmc error informatively | PASS | 7 | 3.007 | | | [test_misc.R](testthat/test_misc.R#L127_L130) | misc | check_dims errors informatively | PASS | 5 | 0.096 | | | [test_misc.R](testthat/test_misc.R#L168_L170) | misc | disjoint graphs are checked | PASS | 2 | 0.268 | | | [test_misc.R](testthat/test_misc.R#L189) | misc | plotting models doesnโ€™t error | PASS | 1 | 0.498 | | | [test_misc.R](testthat/test_misc.R#L200) | misc | structures work correctly | PASS | 3 | 0.059 | | | [test_misc.R](testthat/test_misc.R#L221) | misc | cleanly() handles TF errors nicely | PASS | 3 | 0.070 | | | [test_misc.R](testthat/test_misc.R#L233) | misc | double precision works for all jacobians | PASS | 6 | 0.272 | | | [test_misc.R](testthat/test_misc.R#L261) | misc | module works | PASS | 4 | 0.018 | | | [test_mixture.R](testthat/test_mixture.R#L11) | mixture | continuous mixture variables can be sampled from | PASS | 1 | 6.124 | | | [test_mixture.R](testthat/test_mixture.R#L25) | mixture | fixed continuous mixture distributions can be sampled from | PASS | 1 | 4.877 | | | [test_mixture.R](testthat/test_mixture.R#L39) | mixture | fixed discrete mixture distributions can be sampled from | PASS | 1 | 4.699 | | | [test_mixture.R](testthat/test_mixture.R#L46_L52) | mixture | mixtures of fixed and continuous distributions errors | PASS | 1 | 0.087 | | | [test_mixture.R](testthat/test_mixture.R#L59_L65) | mixture | mixtures of multivariate and univariate errors | PASS | 1 | 0.099 | | | [test_mixture.R](testthat/test_mixture.R#L74_L80) | mixture | mixtures of supports errors | PASS | 2 | 0.176 | | | [test_mixture.R](testthat/test_mixture.R#L96_L102) | mixture | incorrectly-shaped weights errors | PASS | 1 | 0.086 | | | [test_mixture.R](testthat/test_mixture.R#L110_L115) | mixture | mixtures with insufficient distributions errors | PASS | 2 | 0.134 | | | [test_mixture.R](testthat/test_mixture.R#L153_L157) | mixture | mixture of normals has correct density | PASS | 1 | 0.176 | | | [test_mixture.R](testthat/test_mixture.R#L198_L202) | mixture | mixture of truncated normals has correct density | PASS | 1 | 0.197 | | | [test_mixture.R](testthat/test_mixture.R#L234_L238) | mixture | mixture of Poissons has correct density | PASS | 1 | 0.204 | | | [test_mixture.R](testthat/test_mixture.R#L279_L284) | mixture | mixture of normals with varying weights has correct density | PASS | 1 | 0.195 | | | [test_operators.R](testthat/test_operators.R#L7) | operators | arithmetic operators work as expected | PASS | 27 | 4.660 | | | [test_operators.R](testthat/test_operators.R#L24) | operators | arithmetic operators work as expected with arrays and scalars | PASS | 21 | 3.514 | | | [test_operators.R](testthat/test_operators.R#L41) | operators | logical operators work as expected | PASS | 3 | 0.132 | | | [test_operators.R](testthat/test_operators.R#L52) | operators | relational operators work as expected | PASS | 18 | 2.748 | | | [test_operators.R](testthat/test_operators.R#L81_L84) | operators | random strings of operators work as expected | PASS | 20 | 1.322 | | | [test_operators.R](testthat/test_operators.R#L102_L104) | operators | %\*% errors informatively | PASS | 2 | 0.272 | | | [test_opt.R](testthat/test_opt.R#L27_L30) | opt | opt converges with TF optimisers | ERROR | 0 | 0.871 | | | [test_opt.R](testthat/test_opt.R#L78_L80) | opt | opt converges with SciPy optimisers | ERROR | 1 | 0.458 | | | [test_opt.R](testthat/test_opt.R#L102) | opt | opt accepts initial values | ERROR | 0 | 0.400 | | | [test_opt.R](testthat/test_opt.R#L123) | opt | opt returns hessians | ERROR | 0 | 0.775 | | | [test_posteriors.R](testthat/test_posteriors.R#L4) | posteriors | posterior is correct (binomial) | SKIPPED | 1 | 0.005 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L38) | posteriors | samplers are unbiased for bivariate normals | SKIPPED | 1 | 0.005 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L48) | posteriors | samplers are unbiased for chi-squared | SKIPPED | 1 | 0.004 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L60) | posteriors | samplers are unbiased for standard uniform | SKIPPED | 1 | 0.003 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L71) | posteriors | samplers are unbiased for LKJ | SKIPPED | 1 | 0.004 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L84) | posteriors | samplers are unbiased for Wishart | SKIPPED | 1 | 0.005 | ๐Ÿ”ถ | | [test_posteriors.R](testthat/test_posteriors.R#L102) | posteriors | samplers pass geweke tests | SKIPPED | 1 | 0.004 | ๐Ÿ”ถ | | [test_representations.R](testthat/test_representations.R#L17_L20) | representations | log and exp function representations work | PASS | 2 | 0.116 | | | [test_representations.R](testthat/test_representations.R#L43_L46) | representations | chol & chol2inv function representation works | PASS | 2 | 0.130 | | | [test_representations.R](testthat/test_representations.R#L82) | representations | bernoulli prob representations have correct density | PASS | 2 | 0.140 | | | [test_representations.R](testthat/test_representations.R#L125) | representations | binomial prob representations have correct density | PASS | 2 | 0.201 | | | [test_representations.R](testthat/test_representations.R#L151) | representations | poisson lambda representation has correct density | PASS | 1 | 0.076 | | | [test_representations.R](testthat/test_representations.R#L187) | representations | mvn Sigma representation has correct density | PASS | 1 | 0.437 | | | [test_representations.R](testthat/test_representations.R#L221) | representations | wishart target and Sigma representations have correct density | PASS | 2 | 0.236 | | | [test_representations.R](testthat/test_representations.R#L275) | representations | lkj target representation has correct density | PASS | 1 | 0.110 | | | [test_simulate.R](testthat/test_simulate.R#L11) | simulate | simulate produces the right number of samples | PASS | 4 | 0.233 | | | [test_simulate.R](testthat/test_simulate.R#L31) | simulate | simulate uses the local RNG seed | PASS | 5 | 4.946 | | | [test_simulate.R](testthat/test_simulate.R#L63_L65) | simulate | simulate errors if distribution-free variables are not fixed | PASS | 1 | 0.128 | | | [test_simulate.R](testthat/test_simulate.R#L78_L80) | simulate | simulate errors if a distribution cannot be sampled from | PASS | 1 | 0.239 | | | [test_simulate.R](testthat/test_simulate.R#L90_L92) | simulate | simulate errors nicely if nsim is invalid | PASS | 3 | 0.277 | | | [test_syntax.R](testthat/test_syntax.R#L6) | syntax | `distribution<-` works in models | PASS | 2 | 5.800 | | | [test_syntax.R](testthat/test_syntax.R#L21) | syntax | distribution() works | PASS | 3 | 0.048 | | | [test_syntax.R](testthat/test_syntax.R#L39_L41) | syntax | `distribution<-` errors informatively | PASS | 9 | 0.926 | | | [test_syntax.R](testthat/test_syntax.R#L98_L100) | syntax | distribution() errors informatively | PASS | 1 | 0.086 | | | [test_transforms.R](testthat/test_transforms.R#L21) | transforms | transformations work as expected | PASS | 18 | 2.681 | | | [test_transforms.R](testthat/test_transforms.R#L34_L36) | transforms | imultilogit errors informatively | PASS | 1 | 0.128 | | | [test_truncated.R](testthat/test_truncated.R#L7_L14) | truncated | truncated normal has correct densities | PASS | 4 | 0.685 | | | [test_truncated.R](testthat/test_truncated.R#L51_L58) | truncated | truncated lognormal has correct densities | PASS | 4 | 0.290 | | | [test_truncated.R](testthat/test_truncated.R#L95_L102) | truncated | truncated gamma has correct densities | PASS | 4 | 0.236 | | | [test_truncated.R](testthat/test_truncated.R#L145_L152) | truncated | truncated inverse gamma has correct densities | PASS | 4 | 0.238 | | | [test_truncated.R](testthat/test_truncated.R#L189_L196) | truncated | truncated weibull has correct densities | PASS | 4 | 0.249 | | | [test_truncated.R](testthat/test_truncated.R#L233_L237) | truncated | truncated exponential has correct densities | PASS | 4 | 0.186 | | | [test_truncated.R](testthat/test_truncated.R#L274_L281) | truncated | truncated pareto has correct densities | PASS | 4 | 0.221 | | | [test_truncated.R](testthat/test_truncated.R#L322_L330) | truncated | truncated student has correct densities | PASS | 4 | 0.445 | | | [test_truncated.R](testthat/test_truncated.R#L375_L382) | truncated | truncated laplace has correct densities | PASS | 4 | 0.210 | | | [test_truncated.R](testthat/test_truncated.R#L419_L426) | truncated | truncated beta has correct densities | PASS | 4 | 0.546 | | | [test_truncated.R](testthat/test_truncated.R#L463_L470) | truncated | truncated cauchy has correct densities | PASS | 4 | 0.207 | | | [test_truncated.R](testthat/test_truncated.R#L507_L514) | truncated | truncated logistic has correct densities | PASS | 4 | 0.186 | | | [test_truncated.R](testthat/test_truncated.R#L551_L558) | truncated | truncated f has correct densities | PASS | 4 | 0.284 | | | [test_truncated.R](testthat/test_truncated.R#L595_L599) | truncated | truncated chi squared has correct densities | PASS | 4 | 0.188 | | | [test_truncated.R](testthat/test_truncated.R#L626_L628) | truncated | bad truncations error | PASS | 2 | 0.176 | | | [test_variables.R](testthat/test_variables.R#L5_L7) | variables | variable() errors informatively | PASS | 6 | 0.854 | | | [test_variables.R](testthat/test_variables.R#L35_L37) | variables | constrained variable constructors error informatively | PASS | 6 | 0.405 | | | [test_variables.R](testthat/test_variables.R#L75) | variables | variable() with universal bounds can be sampled correctly | PASS | 1 | 7.029 | | | [test_variables.R](testthat/test_variables.R#L96) | variables | variable() with vectorised bounds can be sampled correctly | PASS | 1 | 6.040 | | | [test_variables.R](testthat/test_variables.R#L115) | variables | cholesky_variable() can be sampled correctly | PASS | 1 | 41.877 | | | [test_variables.R](testthat/test_variables.R#L138_L140) | variables | cholesky_variable() correlation can be sampled correctly | PASS | 1 | 16.133 | | | [test_variables.R](testthat/test_variables.R#L159) | variables | simplex_variable() can be sampled correctly | PASS | 1 | 6.435 | | | [test_variables.R](testthat/test_variables.R#L178) | variables | ordered_variable() can be sampled correctly | PASS | 1 | 5.452 | | | [test-diagrammer-installed.R](testthat/test-diagrammer-installed.R#L3) | diagrammer-installed | DiagrammeR installation is checked | SKIPPED | 1 | 0.004 | ๐Ÿ”ถ | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L2_L4) | message_if_using_gpu | message_if_using_gpu gives the correct message for cpu or gpu use | PASS | 2 | 0.121 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L15_L17) | message_if_using_gpu | message_if_using_gpu does not message when option set | PASS | 1 | 0.043 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L26_L28) | message_if_using_gpu | message_if_using_gpu does message when option set | PASS | 1 | 0.070 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L34) | message_if_using_gpu | is_using_gpu and is_using_cpu work | PASS | 4 | 0.021 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L46_L48) | message_if_using_gpu | calculate provides a message when GPU is set | PASS | 2 | 0.204 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L63_L65) | message_if_using_gpu | calculate/mcmc does not message when option set | PASS | 2 | 4.227 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L86_L88) | message_if_using_gpu | calculate/mcmc does message when option set | PASS | 2 | 3.480 | | | [test-message_if_using_gpu.R](testthat/test-message_if_using_gpu.R#L107_L112) | message_if_using_gpu | mcmc provides a message when GPU is set | PASS | 2 | 6.841 | | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L10) | tensorflow-rpkg-stability | tensorflow returns appropriate thing with โ€˜dimโ€™ | PASS | 6 | 0.056 | | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L21) | tensorflow-rpkg-stability | Tensor behaves as we expect | PASS | 3 | 0.640 | | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L30) | tensorflow-rpkg-stability | shape returns right thing | PASS | 15 | 0.579 | | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L77) | tensorflow-rpkg-stability | TensorShape conversions remain stable | PASS | 5 | 0.262 | | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L86) | tensorflow-rpkg-stability | shape returns appropriate TensorShape object | PASS | 17 | 1.028 | | | [test-tensorflow-rpkg-stability.R](testthat/test-tensorflow-rpkg-stability.R#L108) | tensorflow-rpkg-stability | \[, \[\[, and assignment returns right object | PASS | 7 | 0.361 | | | Failed | Warning | Skipped | |:-------|:--------|:--------| | ๐Ÿ›‘ | โš ๏ธ | ๐Ÿ”ถ |
Session Info | Field | Value | |:---------|:---------------------------------| | Version | R version 4.2.1 (2022-06-23) | | Platform | x86_64-apple-darwin17.0 (64-bit) | | Running | macOS Big Sur 11.7.2 | | Language | en_US | | Timezone | America/New_York | | Package | Version | |:---------|:--------| | testthat | 3.1.6 | | covr | 3.6.1 | | covrpage | 0.2 |