covrpage icon indicating copy to clipboard operation
covrpage copied to clipboard

covrpage::covrpage() errors regarding unused connection

Open njtierney opened this issue 2 years ago โ€ข 8 comments

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

njtierney avatar Oct 12 '22 02:10 njtierney

Thanks for trying out the package!

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

yonicd avatar Oct 12 '22 11:10 yonicd

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

njtierney avatar Oct 17 '22 09:10 njtierney

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

yonicd avatar Oct 17 '22 11:10 yonicd

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!

njtierney avatar Oct 18 '22 06:10 njtierney

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

  • Coverage
  • Unit Tests

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 as_data as_data coerces correctly SKIPPED 1 0.152 ๐Ÿ”ถ
test_as_data.R as_data as_data errors informatively SKIPPED 1 0.147 ๐Ÿ”ถ
test_calculate.R calculate deterministic calculate works with correct lists SKIPPED 1 0.103 ๐Ÿ”ถ
test_calculate.R calculate stochastic calculate works with correct lists SKIPPED 1 0.198 ๐Ÿ”ถ
test_calculate.R calculate deterministic calculate works with greta_mcmc_list objects SKIPPED 1 0.139 ๐Ÿ”ถ
test_calculate.R calculate calculate with greta_mcmc_list doesnโ€™t mix up variables SKIPPED 1 0.125 ๐Ÿ”ถ
test_calculate.R calculate calculate with greta_mcmc_list doesnโ€™t lose track of new nodes SKIPPED 1 0.115 ๐Ÿ”ถ
test_calculate.R calculate stochastic calculate works with greta_mcmc_list objects SKIPPED 1 0.111 ๐Ÿ”ถ
test_calculate.R calculate calculate errors if the mcmc samples unrelated to target SKIPPED 1 0.102 ๐Ÿ”ถ
test_calculate.R calculate stochastic calculate works with mcmc samples & new stochastics SKIPPED 1 0.103 ๐Ÿ”ถ
test_calculate.R calculate calculate errors nicely if non-greta arrays are passed SKIPPED 1 0.113 ๐Ÿ”ถ
test_calculate.R calculate calculate errors nicely if values for stochastics not passed SKIPPED 1 0.104 ๐Ÿ”ถ
test_calculate.R calculate calculate errors nicely if values have incorrect dimensions SKIPPED 1 0.104 ๐Ÿ”ถ
test_calculate.R calculate calculate works with variable batch sizes SKIPPED 1 0.104 ๐Ÿ”ถ
test_calculate.R calculate calculate errors nicely with invalid batch sizes SKIPPED 1 0.108 ๐Ÿ”ถ
test_calculate.R calculate calculate returns a named list SKIPPED 1 0.105 ๐Ÿ”ถ
test_calculate.R calculate calculate produces the right number of samples SKIPPED 1 0.103 ๐Ÿ”ถ
test_calculate.R calculate calculate uses the local RNG seed SKIPPED 1 0.111 ๐Ÿ”ถ
test_calculate.R calculate when calculate simulates multiple values, they are calculated using the same RNG seeds SKIPPED 1 0.104 ๐Ÿ”ถ
test_calculate.R calculate calculate works if distribution-free variables are fixed SKIPPED 1 0.103 ๐Ÿ”ถ
test_calculate.R calculate calculate errors if distribution-free variables are not fixed SKIPPED 1 0.108 ๐Ÿ”ถ
test_calculate.R calculate calculate errors if a distribution cannot be sampled from SKIPPED 1 0.106 ๐Ÿ”ถ
test_calculate.R calculate calculate errors nicely if nsim is invalid SKIPPED 1 0.105 ๐Ÿ”ถ
test_check_tf_installed.R check_tf_installed Config/reticulate: has installed python and tf and tfp SKIPPED 1 0.109 ๐Ÿ”ถ
test_check_tf_installed.R check_tf_installed TF version is at least version 2.9.0 SKIPPED 1 0.194 ๐Ÿ”ถ
test_check_tf_installed.R check_tf_installed TFP version is at least version 1.18.0 SKIPPED 1 0.123 ๐Ÿ”ถ
test_distributions.R distributions normal distribution has correct density SKIPPED 1 0.131 ๐Ÿ”ถ
test_distributions.R distributions multidimensional normal distribution has correct density SKIPPED 1 0.117 ๐Ÿ”ถ
test_distributions.R distributions uniform distribution has correct density SKIPPED 1 0.105 ๐Ÿ”ถ
test_distributions.R distributions lognormal distribution has correct density SKIPPED 1 0.112 ๐Ÿ”ถ
test_distributions.R distributions bernoulli distribution has correct density SKIPPED 1 0.106 ๐Ÿ”ถ
test_distributions.R distributions binomial distribution has correct density SKIPPED 1 0.104 ๐Ÿ”ถ
test_distributions.R distributions beta-binomial distribution has correct density SKIPPED 1 0.112 ๐Ÿ”ถ
test_distributions.R distributions negative binomial distribution has correct density SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions hypergeometric distribution has correct density SKIPPED 1 0.106 ๐Ÿ”ถ
test_distributions.R distributions poisson distribution has correct density SKIPPED 1 0.120 ๐Ÿ”ถ
test_distributions.R distributions gamma distribution has correct density SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions inverse gamma distribution has correct density SKIPPED 1 0.109 ๐Ÿ”ถ
test_distributions.R distributions weibull distribution has correct density SKIPPED 1 0.112 ๐Ÿ”ถ
test_distributions.R distributions exponential distribution has correct density SKIPPED 1 0.105 ๐Ÿ”ถ
test_distributions.R distributions pareto distribution has correct density SKIPPED 1 0.104 ๐Ÿ”ถ
test_distributions.R distributions student distribution has correct density SKIPPED 1 0.111 ๐Ÿ”ถ
test_distributions.R distributions laplace distribution has correct density SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions beta distribution has correct density SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions cauchy distribution has correct density SKIPPED 1 0.108 ๐Ÿ”ถ
test_distributions.R distributions logistic distribution has correct density SKIPPED 1 0.104 ๐Ÿ”ถ
test_distributions.R distributions f distribution has correct density SKIPPED 1 0.104 ๐Ÿ”ถ
test_distributions.R distributions chi squared distribution has correct density SKIPPED 1 0.109 ๐Ÿ”ถ
test_distributions.R distributions multivariate normal distribution has correct density SKIPPED 1 0.107 ๐Ÿ”ถ
test_distributions.R distributions Wishart distribution has correct density SKIPPED 1 0.106 ๐Ÿ”ถ
test_distributions.R distributions lkj distribution has correct density SKIPPED 1 0.115 ๐Ÿ”ถ
test_distributions.R distributions multinomial distribution has correct density SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions categorical distribution has correct density SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions dirichlet distribution has correct density SKIPPED 1 0.108 ๐Ÿ”ถ
test_distributions.R distributions dirichlet-multinomial distribution has correct density SKIPPED 1 0.104 ๐Ÿ”ถ
test_distributions.R distributions scalar-valued distributions can be defined in models SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions array-valued distributions can be defined in models SKIPPED 1 0.112 ๐Ÿ”ถ
test_distributions.R distributions distributions can be sampled from by MCMC SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions uniform distribution errors informatively SKIPPED 1 0.104 ๐Ÿ”ถ
test_distributions.R distributions poisson() and binomial() error informatively in glm SKIPPED 1 0.113 ๐Ÿ”ถ
test_distributions.R distributions wishart distribution errors informatively SKIPPED 1 0.104 ๐Ÿ”ถ
test_distributions.R distributions lkj_correlation distribution errors informatively SKIPPED 1 0.105 ๐Ÿ”ถ
test_distributions.R distributions multivariate_normal distribution errors informatively SKIPPED 1 0.110 ๐Ÿ”ถ
test_distributions.R distributions multinomial distribution errors informatively SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions categorical distribution errors informatively SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions dirichlet distribution errors informatively SKIPPED 1 0.110 ๐Ÿ”ถ
test_distributions.R distributions dirichlet values sum to one SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions dirichlet-multinomial distribution errors informatively SKIPPED 1 0.103 ๐Ÿ”ถ
test_distributions.R distributions Wishart can use a choleskied Sigma SKIPPED 1 0.110 ๐Ÿ”ถ
test_distributions.R distributions multivariate distribs with matrix params can be sampled from SKIPPED 1 0.104 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine extract works like R SKIPPED 1 0.105 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine replace works like R SKIPPED 1 0.217 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine rep works like R SKIPPED 1 0.124 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine rbind, cbind and c work like R SKIPPED 1 0.122 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine abind works like R SKIPPED 1 0.142 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine abind errors informatively SKIPPED 1 0.109 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine rbind and cbind can prepend R arrays to greta arrays SKIPPED 1 0.113 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine assign errors on variable greta arrays SKIPPED 1 0.117 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine rbind and cbind give informative error messages SKIPPED 1 0.104 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine replacement gives informative error messages SKIPPED 1 0.104 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine extraction gives informative error messages SKIPPED 1 0.112 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine stochastic and operation greta arrays can be extracted SKIPPED 1 0.105 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine extract, replace, combine work in models SKIPPED 1 0.103 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine length and dim work SKIPPED 1 0.110 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine dim<- works SKIPPED 1 0.106 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine greta_array() reshapes array-like greta arrays like array SKIPPED 1 0.108 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine greta_array() reshapes scalar greta arrays like array SKIPPED 1 0.112 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine dim<- errors as expected SKIPPED 1 0.103 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine dim<- works in a model SKIPPED 1 0.103 ๐Ÿ”ถ
test_extract_replace_combine.R extract_replace_combine c handles NULLs and lists SKIPPED 1 0.109 ๐Ÿ”ถ
test_functions.R functions simple functions work as expected SKIPPED 1 0.104 ๐Ÿ”ถ
test_functions.R functions primitive functions work as expected SKIPPED 1 0.104 ๐Ÿ”ถ
test_functions.R functions cummax and cummin functions error informatively SKIPPED 1 0.216 ๐Ÿ”ถ
test_functions.R functions complex number functions error informatively SKIPPED 1 0.124 ๐Ÿ”ถ
test_functions.R functions matrix functions work as expected SKIPPED 1 0.120 ๐Ÿ”ถ
test_functions.R functions kronecker works with greta and base array arguments SKIPPED 1 0.115 ๐Ÿ”ถ
test_functions.R functions aperm works as expected SKIPPED 1 0.104 ๐Ÿ”ถ
test_functions.R functions reducing functions work as expected SKIPPED 1 0.104 ๐Ÿ”ถ
test_functions.R functions cumulative functions work as expected SKIPPED 1 0.110 ๐Ÿ”ถ
test_functions.R functions apply works as expected SKIPPED 1 0.106 ๐Ÿ”ถ
test_functions.R functions tapply works as expected SKIPPED 1 0.105 ๐Ÿ”ถ
test_functions.R functions cumulative functions error as expected SKIPPED 1 0.113 ๐Ÿ”ถ
test_functions.R functions sweep works as expected SKIPPED 1 0.104 ๐Ÿ”ถ
test_functions.R functions sweep works for numeric x and greta array STATS SKIPPED 1 0.103 ๐Ÿ”ถ
test_functions.R functions solve and sweep and kronecker error as expected SKIPPED 1 0.110 ๐Ÿ”ถ
test_functions.R functions colSums etc. error as expected SKIPPED 1 0.103 ๐Ÿ”ถ
test_functions.R functions forwardsolve and backsolve error as expected SKIPPED 1 0.103 ๐Ÿ”ถ
test_functions.R functions tapply errors as expected SKIPPED 1 0.112 ๐Ÿ”ถ
test_functions.R functions eigen works as expected SKIPPED 1 0.103 ๐Ÿ”ถ
test_functions.R functions ignored options are errored/warned about SKIPPED 1 0.105 ๐Ÿ”ถ
test_functions.R functions incorrect dimensions are errored about SKIPPED 1 0.113 ๐Ÿ”ถ
test_functions.R functions chol2symm inverts chol SKIPPED 1 0.103 ๐Ÿ”ถ
test_future.R future check_future_plan() works PASS 1 3.048
test_future.R future mcmc errors for invalid parallel plans FAILED 3 0.723 ๐Ÿ›‘
test_greta_array_class.R greta_array_class print and summary work SKIPPED 1 0.247 ๐Ÿ”ถ
test_greta_array_class.R greta_array_class as.matrix works SKIPPED 1 0.168 ๐Ÿ”ถ
test_greta_mcmc_list_class.R greta_mcmc_list_class draws and raw draws should have the right iteration numbering SKIPPED 1 0.143 ๐Ÿ”ถ
test_greta_mcmc_list_class.R greta_mcmc_list_class window works SKIPPED 1 0.114 ๐Ÿ”ถ
test_greta_mcmc_list_class.R greta_mcmc_list_class windowing does not have spooky effects SKIPPED 1 0.110 ๐Ÿ”ถ
test_head_tail_work.R head_tail_work head and tail work SKIPPED 1 0.103 ๐Ÿ”ถ
test_iid_samples.R iid_samples univariate samples are correct SKIPPED 1 0.102 ๐Ÿ”ถ
test_iid_samples.R iid_samples truncated univariate samples are correct SKIPPED 1 0.191 ๐Ÿ”ถ
test_iid_samples.R iid_samples multivariate samples are correct SKIPPED 1 0.126 ๐Ÿ”ถ
test_iid_samples.R iid_samples joint samples are correct SKIPPED 1 0.132 ๐Ÿ”ถ
test_iid_samples.R iid_samples mixture samples are correct SKIPPED 1 0.113 ๐Ÿ”ถ
test_iid_samples.R iid_samples distributions without RNG error nicely SKIPPED 1 0.101 ๐Ÿ”ถ
test_inference.R inference bad mcmc proposals are rejected SKIPPED 1 0.108 ๐Ÿ”ถ
test_inference.R inference mcmc works with verbosity and warmup SKIPPED 1 0.104 ๐Ÿ”ถ
test_inference.R inference mcmc works with cpu and gpu options SKIPPED 1 0.109 ๐Ÿ”ถ
test_inference.R inference mcmc prints out CPU and GPU text SKIPPED 1 0.195 ๐Ÿ”ถ
test_inference.R inference mcmc works with multiple chains SKIPPED 1 0.123 ๐Ÿ”ถ
test_inference.R inference mcmc handles initial values nicely SKIPPED 1 0.128 ๐Ÿ”ถ
test_inference.R inference progress bar gives a range of messages SKIPPED 1 0.105 ๐Ÿ”ถ
test_inference.R inference extra_samples works SKIPPED 1 0.102 ๐Ÿ”ถ
test_inference.R inference trace_batch_size works SKIPPED 1 0.426 ๐Ÿ”ถ
test_inference.R inference stashed_samples works SKIPPED 1 0.105 ๐Ÿ”ถ
test_inference.R inference samples has object names SKIPPED 1 0.116 ๐Ÿ”ถ
test_inference.R inference model errors nicely SKIPPED 1 0.102 ๐Ÿ”ถ
test_inference.R inference mcmc supports rwmh sampler with normal proposals SKIPPED 1 0.106 ๐Ÿ”ถ
test_inference.R inference mcmc supports rwmh sampler with uniform proposals SKIPPED 1 0.112 ๐Ÿ”ถ
test_inference.R inference mcmc supports slice sampler with single precision models SKIPPED 1 0.102 ๐Ÿ”ถ
test_inference.R inference mcmc doesnโ€™t support slice sampler with double precision models SKIPPED 1 0.105 ๐Ÿ”ถ
test_inference.R inference numerical issues are handled in mcmc SKIPPED 1 0.110 ๐Ÿ”ถ
test_inference.R inference mcmc works in parallel SKIPPED 1 0.104 ๐Ÿ”ถ
test_inference.R inference mcmc errors for invalid parallel plans SKIPPED 1 0.110 ๐Ÿ”ถ
test_inference.R inference parallel reporting works SKIPPED 1 0.100 ๐Ÿ”ถ
test_inference.R inference initials works SKIPPED 1 0.105 ๐Ÿ”ถ
test_inference.R inference prep_initials errors informatively SKIPPED 1 0.111 ๐Ÿ”ถ
test_inference.R inference samplers print informatively SKIPPED 1 0.102 ๐Ÿ”ถ
test_inference.R inference pb_update > thin to avoid bursts with no saved iterations SKIPPED 1 0.105 ๐Ÿ”ถ
test_install_greta_deps.R install_greta_deps install_greta_deps errors appropriately SKIPPED 1 0.218 ๐Ÿ”ถ
test_joint.R joint continuous joint variables can be sampled from SKIPPED 1 0.125 ๐Ÿ”ถ
test_joint.R joint truncated continuous joint variables can be sampled from SKIPPED 1 0.124 ๐Ÿ”ถ
test_joint.R joint uniform joint variables can be sampled from SKIPPED 1 0.106 ๐Ÿ”ถ
test_joint.R joint joint normals with different truncation types can be sampled SKIPPED 1 0.106 ๐Ÿ”ถ
test_joint.R joint fixed continuous joint distributions can be sampled from SKIPPED 1 0.107 ๐Ÿ”ถ
test_joint.R joint fixed discrete joint distributions can be sampled from SKIPPED 1 0.103 ๐Ÿ”ถ
test_joint.R joint joint of fixed and continuous distributions errors SKIPPED 1 0.112 ๐Ÿ”ถ
test_joint.R joint joint with insufficient distributions errors SKIPPED 1 0.106 ๐Ÿ”ถ
test_joint.R joint joint with non-scalar distributions errors SKIPPED 1 0.104 ๐Ÿ”ถ
test_joint.R joint joint of normals has correct density SKIPPED 1 0.108 ๐Ÿ”ถ
test_joint.R joint joint of truncated normals has correct density SKIPPED 1 0.102 ๐Ÿ”ถ
test_joint.R joint joint of uniforms has correct density SKIPPED 1 0.111 ๐Ÿ”ถ
test_joint.R joint joint of Poissons has correct density SKIPPED 1 0.102 ๐Ÿ”ถ
test_misc.R misc check_tf_version works SKIPPED 1 0.104 ๐Ÿ”ถ
test_misc.R misc .onLoad runs SKIPPED 1 0.108 ๐Ÿ”ถ
test_misc.R misc tensorflow coercion works SKIPPED 1 0.102 ๐Ÿ”ถ
test_misc.R misc all_greta_arrays works SKIPPED 1 0.210 ๐Ÿ”ถ
test_misc.R misc greta_model objects print SKIPPED 1 0.129 ๐Ÿ”ถ
test_misc.R misc define and mcmc error informatively SKIPPED 1 0.118 ๐Ÿ”ถ
test_misc.R misc check_dims errors informatively SKIPPED 1 0.110 ๐Ÿ”ถ
test_misc.R misc disjoint graphs are checked SKIPPED 1 0.106 ๐Ÿ”ถ
test_misc.R misc plotting models doesnโ€™t error SKIPPED 1 0.110 ๐Ÿ”ถ
test_misc.R misc structures work correctly SKIPPED 1 0.111 ๐Ÿ”ถ
test_misc.R misc cleanly() handles TF errors nicely SKIPPED 1 0.104 ๐Ÿ”ถ
test_misc.R misc double precision works for all jacobians SKIPPED 1 0.111 ๐Ÿ”ถ
test_misc.R misc module works PASS 4 0.017
test_mixture.R mixture continuous mixture variables can be sampled from SKIPPED 1 0.103 ๐Ÿ”ถ
test_mixture.R mixture fixed continuous mixture distributions can be sampled from SKIPPED 1 0.102 ๐Ÿ”ถ
test_mixture.R mixture fixed discrete mixture distributions can be sampled from SKIPPED 1 0.111 ๐Ÿ”ถ
test_mixture.R mixture mixtures of fixed and continuous distributions errors SKIPPED 1 0.103 ๐Ÿ”ถ
test_mixture.R mixture mixtures of multivariate and univariate errors SKIPPED 1 0.114 ๐Ÿ”ถ
test_mixture.R mixture mixtures of supports errors SKIPPED 1 0.102 ๐Ÿ”ถ
test_mixture.R mixture incorrectly-shaped weights errors SKIPPED 1 0.104 ๐Ÿ”ถ
test_mixture.R mixture mixtures with insufficient distributions errors SKIPPED 1 0.200 ๐Ÿ”ถ
test_mixture.R mixture mixture of normals has correct density SKIPPED 1 0.132 ๐Ÿ”ถ
test_mixture.R mixture mixture of truncated normals has correct density SKIPPED 1 0.122 ๐Ÿ”ถ
test_mixture.R mixture mixture of Poissons has correct density SKIPPED 1 0.121 ๐Ÿ”ถ
test_mixture.R mixture mixture of normals with varying weights has correct density SKIPPED 1 0.104 ๐Ÿ”ถ
test_operators.R operators arithmetic operators work as expected SKIPPED 1 0.118 ๐Ÿ”ถ
test_operators.R operators arithmetic operators work as expected with arrays and scalars SKIPPED 1 0.105 ๐Ÿ”ถ
test_operators.R operators logical operators work as expected SKIPPED 1 0.104 ๐Ÿ”ถ
test_operators.R operators relational operators work as expected SKIPPED 1 0.222 ๐Ÿ”ถ
test_operators.R operators random strings of operators work as expected SKIPPED 1 0.123 ๐Ÿ”ถ
test_operators.R operators %*% errors informatively SKIPPED 1 0.126 ๐Ÿ”ถ
test_opt.R opt opt converges with TF optimisers SKIPPED 1 0.103 ๐Ÿ”ถ
test_opt.R opt opt converges with SciPy optimisers SKIPPED 1 0.106 ๐Ÿ”ถ
test_opt.R opt opt accepts initial values SKIPPED 1 0.110 ๐Ÿ”ถ
test_opt.R opt opt returns hessians SKIPPED 1 0.102 ๐Ÿ”ถ
test_posteriors.R posteriors posterior is correct (binomial) SKIPPED 1 0.207 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for bivariate normals SKIPPED 1 0.127 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for chi-squared SKIPPED 1 0.122 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for standard uniform SKIPPED 1 0.118 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for LKJ SKIPPED 1 0.106 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for Wishart SKIPPED 1 0.112 ๐Ÿ”ถ
test_posteriors.R posteriors samplers pass geweke tests SKIPPED 1 0.102 ๐Ÿ”ถ
test_representations.R representations log and exp function representations work SKIPPED 1 0.105 ๐Ÿ”ถ
test_representations.R representations chol & chol2inv function representation works SKIPPED 1 0.115 ๐Ÿ”ถ
test_representations.R representations bernoulli prob representations have correct density SKIPPED 1 0.102 ๐Ÿ”ถ
test_representations.R representations binomial prob representations have correct density SKIPPED 1 0.105 ๐Ÿ”ถ
test_representations.R representations poisson lambda representation has correct density SKIPPED 1 0.110 ๐Ÿ”ถ
test_representations.R representations mvn Sigma representation has correct density SKIPPED 1 0.105 ๐Ÿ”ถ
test_representations.R representations wishart target and Sigma representations have correct density SKIPPED 1 0.112 ๐Ÿ”ถ
test_representations.R representations lkj target representation has correct density SKIPPED 1 0.101 ๐Ÿ”ถ
test_simulate.R simulate simulate produces the right number of samples SKIPPED 1 0.106 ๐Ÿ”ถ
test_simulate.R simulate simulate uses the local RNG seed SKIPPED 1 0.113 ๐Ÿ”ถ
test_simulate.R simulate simulate errors if distribution-free variables are not fixed SKIPPED 1 0.104 ๐Ÿ”ถ
test_simulate.R simulate simulate errors if a distribution cannot be sampled from SKIPPED 1 0.111 ๐Ÿ”ถ
test_simulate.R simulate simulate errors nicely if nsim is invalid SKIPPED 1 0.102 ๐Ÿ”ถ
test_syntax.R syntax distribution<- works in models SKIPPED 1 0.104 ๐Ÿ”ถ
test_syntax.R syntax distribution() works SKIPPED 1 0.215 ๐Ÿ”ถ
test_syntax.R syntax distribution<- errors informatively SKIPPED 1 0.124 ๐Ÿ”ถ
test_syntax.R syntax distribution() errors informatively SKIPPED 1 0.129 ๐Ÿ”ถ
test_transforms.R transforms transformations work as expected SKIPPED 1 0.107 ๐Ÿ”ถ
test_transforms.R transforms imultilogit errors informatively SKIPPED 1 0.106 ๐Ÿ”ถ
test_truncated.R truncated truncated normal has correct densities SKIPPED 1 0.112 ๐Ÿ”ถ
test_truncated.R truncated truncated lognormal has correct densities SKIPPED 1 0.103 ๐Ÿ”ถ
test_truncated.R truncated truncated gamma has correct densities SKIPPED 1 0.199 ๐Ÿ”ถ
test_truncated.R truncated truncated inverse gamma has correct densities SKIPPED 1 0.126 ๐Ÿ”ถ
test_truncated.R truncated truncated weibull has correct densities SKIPPED 1 0.124 ๐Ÿ”ถ
test_truncated.R truncated truncated exponential has correct densities SKIPPED 1 0.123 ๐Ÿ”ถ
test_truncated.R truncated truncated pareto has correct densities SKIPPED 1 0.104 ๐Ÿ”ถ
test_truncated.R truncated truncated student has correct densities SKIPPED 1 0.114 ๐Ÿ”ถ
test_truncated.R truncated truncated laplace has correct densities SKIPPED 1 0.103 ๐Ÿ”ถ
test_truncated.R truncated truncated beta has correct densities SKIPPED 1 0.106 ๐Ÿ”ถ
test_truncated.R truncated truncated cauchy has correct densities SKIPPED 1 0.112 ๐Ÿ”ถ
test_truncated.R truncated truncated logistic has correct densities SKIPPED 1 0.104 ๐Ÿ”ถ
test_truncated.R truncated truncated f has correct densities SKIPPED 1 0.104 ๐Ÿ”ถ
test_truncated.R truncated truncated chi squared has correct densities SKIPPED 1 0.112 ๐Ÿ”ถ
test_truncated.R truncated bad truncations error SKIPPED 1 0.104 ๐Ÿ”ถ
test_variables.R variables variable() errors informatively SKIPPED 1 0.113 ๐Ÿ”ถ
test_variables.R variables constrained variable constructors error informatively SKIPPED 1 0.102 ๐Ÿ”ถ
test_variables.R variables variable() with universal bounds can be sampled correctly SKIPPED 1 0.104 ๐Ÿ”ถ
test_variables.R variables variable() with vectorised bounds can be sampled correctly SKIPPED 1 0.134 ๐Ÿ”ถ
test_variables.R variables cholesky_variable() can be sampled correctly SKIPPED 1 0.197 ๐Ÿ”ถ
test_variables.R variables cholesky_variable() correlation can be sampled correctly SKIPPED 1 0.137 ๐Ÿ”ถ
test_variables.R variables simplex_variable() can be sampled correctly SKIPPED 1 0.122 ๐Ÿ”ถ
test_variables.R variables ordered_variable() can be sampled correctly SKIPPED 1 0.113 ๐Ÿ”ถ
test-diagrammer-installed.R diagrammer-installed DiagrammeR installation is checked SKIPPED 1 0.115 ๐Ÿ”ถ
test-message_if_using_gpu.R 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 message_if_using_gpu message_if_using_gpu does not message when option set ERROR 0 0.011
test-message_if_using_gpu.R message_if_using_gpu message_if_using_gpu does message when option set ERROR 0 0.010
test-message_if_using_gpu.R message_if_using_gpu is_using_gpu and is_using_cpu work ERROR 0 0.007
test-message_if_using_gpu.R message_if_using_gpu calculate provides a message when GPU is set SKIPPED 1 0.119 ๐Ÿ”ถ
test-message_if_using_gpu.R message_if_using_gpu calculate/mcmc does not message when option set SKIPPED 1 0.197 ๐Ÿ”ถ
test-message_if_using_gpu.R message_if_using_gpu calculate/mcmc does message when option set SKIPPED 1 0.131 ๐Ÿ”ถ
test-message_if_using_gpu.R message_if_using_gpu mcmc provides a message when GPU is set SKIPPED 1 0.130 ๐Ÿ”ถ
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability tensorflow returns appropriate thing with โ€˜dimโ€™ SKIPPED 1 0.112 ๐Ÿ”ถ
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability Tensor behaves as we expect SKIPPED 1 0.113 ๐Ÿ”ถ
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability shape returns right thing SKIPPED 1 0.102 ๐Ÿ”ถ
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability TensorShape conversions remain stable SKIPPED 1 0.104 ๐Ÿ”ถ
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability shape returns appropriate TensorShape object SKIPPED 1 0.111 ๐Ÿ”ถ
test-tensorflow-rpkg-stability.R 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

yonicd avatar Dec 23 '22 19:12 yonicd

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

njtierney avatar Feb 08 '23 05:02 njtierney

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 avatar Feb 11 '23 13:02 yonicd

@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

  • it assumes users tests arent failing at a high rate :). I had to put in testthat::set_max_fails(Inf) to let testthat continue past the default limit of max fails to detect all the failing expectations.

on the side of greta

  • it is this call: https://github.com/greta-dev/greta/blob/master/tests/testthat/test_inference.R#L569

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.

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 62.14
R/callbacks.R 0.00
R/greta_create_conda_env.R 0.00
R/greta_install_miniconda.R 0.00
R/greta_stash.R 0.00
R/optimisers.R 0.00
R/reinstallers.R 0.00
R/simulate.R 0.00
R/zzz.R 0.00
R/distribution.R 21.25
R/operators.R 21.82
R/test_if_forked_cluster.R 22.22
R/greta_model_class.R 24.12
R/transforms.R 29.63
R/chol2symm.R 33.33
R/install_greta_deps.R 33.33
R/conda_greta_env.R 40.00
R/variable.R 41.24
R/as_data.R 41.67
R/greta_array_class.R 43.45
R/utils.R 52.94
R/new_install_process.R 53.12
R/mixture.R 53.16
R/inference_class.R 55.02
R/samplers.R 57.14
R/greta_install_python_deps.R 60.71
R/greta_mcmc_list.R 63.64
R/functions.R 64.91
R/inference.R 65.82
R/dag_class.R 67.07
R/extract_replace_combine.R 68.07
R/checkers.R 69.11
R/unknowns_class.R 69.23
R/node_class.R 72.31
R/progress_bar.R 78.12
R/calculate.R 82.39
R/node_types.R 83.79
R/probability_distributions.R 87.54
R/tf_functions.R 88.98
R/structures.R 93.33
R/testthat-helpers.R 98.31
R/joint.R 98.78

Unit Tests

Unit Test summary is created using the testthat package.

file n time error failed skipped warning icon
test_as_data.R 52 1.653 0 0 0 0
test_calculate.R 80 45.156 1 0 0 0
test_check_tf_installed.R 6 0.028 0 0 0 0
test_distributions.R 208 256.632 0 0 0 0
test_extract_replace_combine.R 223 32.012 0 0 0 0
test_functions.R 454 41.168 0 0 0 0
test_future.R 2 2.939 1 1 0 0 ๐Ÿ›‘
test_greta_array_class.R 11 0.915 0 0 0 0
test_greta_mcmc_list_class.R 23 12.820 0 0 0 0
test_head_tail_work.R 18 1.295 0 0 0 0
test_iid_samples.R 39 15.392 0 0 0 0
test_inference.R 54 119.639 4 9 1 0 ๐Ÿ›‘๐Ÿ”ถ
test_install_greta_deps.R 1 2.388 0 0 0 0
test_joint.R 14 36.570 0 0 0 0
test_misc.R 41 18.709 0 0 0 0
test_mixture.R 14 17.054 0 0 0 0
test_operators.R 91 12.648 0 0 0 0
test_opt.R 1 2.504 4 0 0 0
test_posteriors.R 7 0.030 0 0 7 0 ๐Ÿ”ถ
test_representations.R 13 1.446 0 0 0 0
test_simulate.R 14 5.823 0 0 0 0
test_syntax.R 15 6.860 0 0 0 0
test_transforms.R 19 2.809 0 0 0 0
test_truncated.R 58 4.347 0 0 0 0
test_variables.R 18 84.225 0 0 0 0
test-diagrammer-installed.R 1 0.004 0 0 1 0 ๐Ÿ”ถ
test-message_if_using_gpu.R 16 15.007 0 0 0 0
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 as_data as_data coerces correctly PASS 39 0.408
test_as_data.R as_data as_data errors informatively PASS 13 1.245
test_calculate.R calculate deterministic calculate works with correct lists PASS 3 0.889
test_calculate.R calculate stochastic calculate works with correct lists PASS 12 6.501
test_calculate.R calculate deterministic calculate works with greta_mcmc_list objects PASS 6 6.769
test_calculate.R calculate calculate with greta_mcmc_list doesnโ€™t mix up variables PASS 2 7.131
test_calculate.R calculate calculate with greta_mcmc_list doesnโ€™t lose track of new nodes PASS 4 4.097
test_calculate.R calculate stochastic calculate works with greta_mcmc_list objects PASS 11 3.591
test_calculate.R calculate calculate errors if the mcmc samples unrelated to target PASS 1 2.656
test_calculate.R calculate stochastic calculate works with mcmc samples & new stochastics PASS 3 2.874
test_calculate.R calculate calculate errors nicely if non-greta arrays are passed PASS 2 0.300
test_calculate.R calculate calculate errors nicely if values for stochastics not passed PASS 2 0.166
test_calculate.R calculate calculate errors nicely if values have incorrect dimensions PASS 1 0.074
test_calculate.R calculate calculate works with variable batch sizes PASS 6 4.111
test_calculate.R calculate calculate errors nicely with invalid batch sizes PASS 3 2.776
test_calculate.R calculate calculate returns a named list PASS 5 0.108
test_calculate.R calculate calculate produces the right number of samples PASS 8 1.928
test_calculate.R calculate calculate uses the local RNG seed PASS 5 0.675
test_calculate.R calculate when calculate simulates multiple values, they are calculated using the same RNG seeds ERROR 0 0.078
test_calculate.R calculate calculate works if distribution-free variables are fixed PASS 1 0.048
test_calculate.R calculate calculate errors if distribution-free variables are not fixed PASS 1 0.081
test_calculate.R calculate calculate errors if a distribution cannot be sampled from PASS 1 0.108
test_calculate.R calculate calculate errors nicely if nsim is invalid PASS 3 0.195
test_check_tf_installed.R check_tf_installed Config/reticulate: has installed python and tf and tfp PASS 4 0.022
test_check_tf_installed.R check_tf_installed TF version is at least version 2.9.0 PASS 1 0.003
test_check_tf_installed.R check_tf_installed TFP version is at least version 1.18.0 PASS 1 0.003
test_distributions.R distributions normal distribution has correct density PASS 1 0.066
test_distributions.R distributions multidimensional normal distribution has correct density PASS 1 0.061
test_distributions.R distributions uniform distribution has correct density PASS 1 0.073
test_distributions.R distributions lognormal distribution has correct density PASS 1 0.071
test_distributions.R distributions bernoulli distribution has correct density PASS 1 0.123
test_distributions.R distributions binomial distribution has correct density PASS 1 0.171
test_distributions.R distributions beta-binomial distribution has correct density PASS 1 0.096
test_distributions.R distributions negative binomial distribution has correct density PASS 1 0.065
test_distributions.R distributions hypergeometric distribution has correct density PASS 1 0.088
test_distributions.R distributions poisson distribution has correct density PASS 1 0.056
test_distributions.R distributions gamma distribution has correct density PASS 1 0.069
test_distributions.R distributions inverse gamma distribution has correct density PASS 1 0.062
test_distributions.R distributions weibull distribution has correct density PASS 1 0.070
test_distributions.R distributions exponential distribution has correct density PASS 1 0.051
test_distributions.R distributions pareto distribution has correct density PASS 1 0.550
test_distributions.R distributions student distribution has correct density PASS 1 0.283
test_distributions.R distributions laplace distribution has correct density PASS 1 0.090
test_distributions.R distributions beta distribution has correct density PASS 1 0.086
test_distributions.R distributions cauchy distribution has correct density PASS 1 0.082
test_distributions.R distributions logistic distribution has correct density PASS 1 0.079
test_distributions.R distributions f distribution has correct density PASS 1 0.103
test_distributions.R distributions chi squared distribution has correct density PASS 1 0.071
test_distributions.R distributions multivariate normal distribution has correct density PASS 1 0.497
test_distributions.R distributions Wishart distribution has correct density PASS 10 0.602
test_distributions.R distributions lkj distribution has correct density PASS 10 0.543
test_distributions.R distributions multinomial distribution has correct density PASS 1 0.313
test_distributions.R distributions categorical distribution has correct density PASS 1 0.197
test_distributions.R distributions dirichlet distribution has correct density PASS 1 0.169
test_distributions.R distributions dirichlet-multinomial distribution has correct density PASS 1 0.178
test_distributions.R distributions scalar-valued distributions can be defined in models PASS 29 2.033
test_distributions.R distributions array-valued distributions can be defined in models PASS 29 1.957
test_distributions.R distributions distributions can be sampled from by MCMC PASS 32 200.950
test_distributions.R distributions uniform distribution errors informatively PASS 5 0.555
test_distributions.R distributions poisson() and binomial() error informatively in glm PASS 4 0.287
test_distributions.R distributions wishart distribution errors informatively PASS 3 0.333
test_distributions.R distributions lkj_correlation distribution errors informatively PASS 7 0.467
test_distributions.R distributions multivariate_normal distribution errors informatively PASS 13 0.872
test_distributions.R distributions multinomial distribution errors informatively PASS 9 0.585
test_distributions.R distributions categorical distribution errors informatively PASS 7 0.430
test_distributions.R distributions dirichlet distribution errors informatively PASS 7 0.631
test_distributions.R distributions dirichlet values sum to one PASS 1 12.089
test_distributions.R distributions dirichlet-multinomial distribution errors informatively PASS 9 0.426
test_distributions.R distributions Wishart can use a choleskied Sigma PASS 1 12.468
test_distributions.R distributions multivariate distribs with matrix params can be sampled from PASS 5 17.584
test_extract_replace_combine.R extract_replace_combine extract works like R PASS 28 0.873
test_extract_replace_combine.R extract_replace_combine replace works like R PASS 37 4.839
test_extract_replace_combine.R extract_replace_combine rep works like R PASS 48 4.162
test_extract_replace_combine.R extract_replace_combine rbind, cbind and c work like R PASS 36 3.984
test_extract_replace_combine.R extract_replace_combine abind works like R PASS 12 1.269
test_extract_replace_combine.R extract_replace_combine abind errors informatively PASS 2 0.136
test_extract_replace_combine.R extract_replace_combine rbind and cbind can prepend R arrays to greta arrays PASS 8 0.034
test_extract_replace_combine.R extract_replace_combine assign errors on variable greta arrays PASS 1 0.164
test_extract_replace_combine.R extract_replace_combine rbind and cbind give informative error messages PASS 2 0.139
test_extract_replace_combine.R extract_replace_combine replacement gives informative error messages PASS 3 0.164
test_extract_replace_combine.R extract_replace_combine extraction gives informative error messages PASS 2 0.100
test_extract_replace_combine.R extract_replace_combine stochastic and operation greta arrays can be extracted PASS 2 0.029
test_extract_replace_combine.R extract_replace_combine extract, replace, combine work in models PASS 3 10.643
test_extract_replace_combine.R extract_replace_combine length and dim work PASS 6 0.043
test_extract_replace_combine.R extract_replace_combine dim<- works PASS 9 0.680
test_extract_replace_combine.R extract_replace_combine greta_array() reshapes array-like greta arrays like array PASS 3 0.121
test_extract_replace_combine.R extract_replace_combine greta_array() reshapes scalar greta arrays like array PASS 3 0.116
test_extract_replace_combine.R extract_replace_combine dim<- errors as expected PASS 4 0.264
test_extract_replace_combine.R extract_replace_combine dim<- works in a model PASS 2 4.195
test_extract_replace_combine.R extract_replace_combine c handles NULLs and lists PASS 12 0.057
test_functions.R functions simple functions work as expected PASS 57 4.977
test_functions.R functions primitive functions work as expected PASS 36 2.267
test_functions.R functions cummax and cummin functions error informatively PASS 2 3.651
test_functions.R functions complex number functions error informatively PASS 5 0.709
test_functions.R functions matrix functions work as expected PASS 58 5.933
test_functions.R functions kronecker works with greta and base array arguments PASS 4 0.082
test_functions.R functions aperm works as expected PASS 18 1.152
test_functions.R functions reducing functions work as expected PASS 40 5.021
test_functions.R functions cumulative functions work as expected PASS 6 0.371
test_functions.R functions apply works as expected PASS 168 14.251
test_functions.R functions tapply works as expected PASS 5 0.126
test_functions.R functions cumulative functions error as expected PASS 4 0.232
test_functions.R functions sweep works as expected PASS 8 0.225
test_functions.R functions sweep works for numeric x and greta array STATS PASS 2 0.028
test_functions.R functions solve and sweep and kronecker error as expected PASS 12 0.718
test_functions.R functions colSums etc. error as expected PASS 4 0.208
test_functions.R functions forwardsolve and backsolve error as expected PASS 4 0.237
test_functions.R functions tapply errors as expected PASS 2 0.108
test_functions.R functions eigen works as expected PASS 3 0.078
test_functions.R functions ignored options are errored/warned about PASS 5 0.275
test_functions.R functions incorrect dimensions are errored about PASS 9 0.490
test_functions.R functions chol2symm inverts chol PASS 2 0.029
test_future.R future check_future_plan() works PASS 1 2.910
test_future.R future mcmc errors for invalid parallel plans ERROR 1 0.029
test_greta_array_class.R greta_array_class print and summary work PASS 8 0.878
test_greta_array_class.R greta_array_class as.matrix works PASS 3 0.037
test_greta_mcmc_list_class.R greta_mcmc_list_class draws and raw draws should have the right iteration numbering PASS 8 5.419
test_greta_mcmc_list_class.R greta_mcmc_list_class window works PASS 9 4.619
test_greta_mcmc_list_class.R greta_mcmc_list_class windowing does not have spooky effects PASS 6 2.782
test_head_tail_work.R head_tail_work head and tail work PASS 18 1.295
test_iid_samples.R iid_samples univariate samples are correct PASS 20 1.769
test_iid_samples.R iid_samples truncated univariate samples are correct PASS 5 0.233
test_iid_samples.R iid_samples multivariate samples are correct PASS 7 10.918
test_iid_samples.R iid_samples joint samples are correct PASS 2 0.241
test_iid_samples.R iid_samples mixture samples are correct PASS 3 2.053
test_iid_samples.R iid_samples distributions without RNG error nicely PASS 2 0.178
test_inference.R inference bad mcmc proposals are rejected ERROR 2 5.160
test_inference.R inference mcmc works with verbosity and warmup PASS 1 3.111
test_inference.R inference mcmc works with cpu and gpu options PASS 2 4.511
test_inference.R inference mcmc prints out CPU and GPU text PASS 2 4.905
test_inference.R inference mcmc works with multiple chains PASS 2 6.656
test_inference.R inference mcmc handles initial values nicely PASS 3 4.799
test_inference.R inference progress bar gives a range of messages PASS 3 0.146
test_inference.R inference extra_samples works PASS 3 3.895
test_inference.R inference trace_batch_size works PASS 3 4.390
test_inference.R inference stashed_samples works PASS 5 3.768
test_inference.R inference samples has object names PASS 2 5.611
test_inference.R inference model errors nicely PASS 1 0.087
test_inference.R inference mcmc supports rwmh sampler with normal proposals FAILED 1 0.497 ๐Ÿ›‘
test_inference.R inference mcmc supports rwmh sampler with uniform proposals FAILED 1 0.693 ๐Ÿ›‘
test_inference.R inference mcmc supports slice sampler with single precision models FAILED 1 0.828 ๐Ÿ›‘
test_inference.R inference mcmc doesnโ€™t support slice sampler with double precision models FAILED 1 0.797 ๐Ÿ›‘
test_inference.R inference numerical issues are handled in mcmc ERROR 1 28.431
test_inference.R inference mcmc works in parallel ERROR 1 18.819
test_inference.R inference mcmc errors for invalid parallel plans ERROR 1 12.026
test_inference.R inference parallel reporting works SKIPPED 1 3.346 ๐Ÿ”ถ
test_inference.R inference initials works PASS 3 0.257
test_inference.R inference prep_initials errors informatively PASS 8 0.944
test_inference.R inference samplers print informatively PASS 4 0.225
test_inference.R inference pb_update > thin to avoid bursts with no saved iterations PASS 2 5.737
test_install_greta_deps.R install_greta_deps install_greta_deps errors appropriately PASS 1 2.388
test_joint.R joint continuous joint variables can be sampled from PASS 1 3.819
test_joint.R joint truncated continuous joint variables can be sampled from PASS 1 5.473
test_joint.R joint uniform joint variables can be sampled from PASS 1 4.099
test_joint.R joint joint normals with different truncation types can be sampled PASS 1 12.283
test_joint.R joint fixed continuous joint distributions can be sampled from PASS 1 4.982
test_joint.R joint fixed discrete joint distributions can be sampled from PASS 1 4.880
test_joint.R joint joint of fixed and continuous distributions errors PASS 1 0.090
test_joint.R joint joint with insufficient distributions errors PASS 2 0.155
test_joint.R joint joint with non-scalar distributions errors PASS 1 0.098
test_joint.R joint joint of normals has correct density PASS 1 0.140
test_joint.R joint joint of truncated normals has correct density PASS 1 0.162
test_joint.R joint joint of uniforms has correct density PASS 1 0.259
test_joint.R joint joint of Poissons has correct density PASS 1 0.130
test_misc.R misc check_tf_version works PASS 3 2.450
test_misc.R misc .onLoad runs PASS 1 11.815
test_misc.R misc tensorflow coercion works PASS 3 0.034
test_misc.R misc all_greta_arrays works PASS 2 0.038
test_misc.R misc greta_model objects print PASS 1 0.084
test_misc.R misc define and mcmc error informatively PASS 7 3.007
test_misc.R misc check_dims errors informatively PASS 5 0.096
test_misc.R misc disjoint graphs are checked PASS 2 0.268
test_misc.R misc plotting models doesnโ€™t error PASS 1 0.498
test_misc.R misc structures work correctly PASS 3 0.059
test_misc.R misc cleanly() handles TF errors nicely PASS 3 0.070
test_misc.R misc double precision works for all jacobians PASS 6 0.272
test_misc.R misc module works PASS 4 0.018
test_mixture.R mixture continuous mixture variables can be sampled from PASS 1 6.124
test_mixture.R mixture fixed continuous mixture distributions can be sampled from PASS 1 4.877
test_mixture.R mixture fixed discrete mixture distributions can be sampled from PASS 1 4.699
test_mixture.R mixture mixtures of fixed and continuous distributions errors PASS 1 0.087
test_mixture.R mixture mixtures of multivariate and univariate errors PASS 1 0.099
test_mixture.R mixture mixtures of supports errors PASS 2 0.176
test_mixture.R mixture incorrectly-shaped weights errors PASS 1 0.086
test_mixture.R mixture mixtures with insufficient distributions errors PASS 2 0.134
test_mixture.R mixture mixture of normals has correct density PASS 1 0.176
test_mixture.R mixture mixture of truncated normals has correct density PASS 1 0.197
test_mixture.R mixture mixture of Poissons has correct density PASS 1 0.204
test_mixture.R mixture mixture of normals with varying weights has correct density PASS 1 0.195
test_operators.R operators arithmetic operators work as expected PASS 27 4.660
test_operators.R operators arithmetic operators work as expected with arrays and scalars PASS 21 3.514
test_operators.R operators logical operators work as expected PASS 3 0.132
test_operators.R operators relational operators work as expected PASS 18 2.748
test_operators.R operators random strings of operators work as expected PASS 20 1.322
test_operators.R operators %*% errors informatively PASS 2 0.272
test_opt.R opt opt converges with TF optimisers ERROR 0 0.871
test_opt.R opt opt converges with SciPy optimisers ERROR 1 0.458
test_opt.R opt opt accepts initial values ERROR 0 0.400
test_opt.R opt opt returns hessians ERROR 0 0.775
test_posteriors.R posteriors posterior is correct (binomial) SKIPPED 1 0.005 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for bivariate normals SKIPPED 1 0.005 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for chi-squared SKIPPED 1 0.004 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for standard uniform SKIPPED 1 0.003 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for LKJ SKIPPED 1 0.004 ๐Ÿ”ถ
test_posteriors.R posteriors samplers are unbiased for Wishart SKIPPED 1 0.005 ๐Ÿ”ถ
test_posteriors.R posteriors samplers pass geweke tests SKIPPED 1 0.004 ๐Ÿ”ถ
test_representations.R representations log and exp function representations work PASS 2 0.116
test_representations.R representations chol & chol2inv function representation works PASS 2 0.130
test_representations.R representations bernoulli prob representations have correct density PASS 2 0.140
test_representations.R representations binomial prob representations have correct density PASS 2 0.201
test_representations.R representations poisson lambda representation has correct density PASS 1 0.076
test_representations.R representations mvn Sigma representation has correct density PASS 1 0.437
test_representations.R representations wishart target and Sigma representations have correct density PASS 2 0.236
test_representations.R representations lkj target representation has correct density PASS 1 0.110
test_simulate.R simulate simulate produces the right number of samples PASS 4 0.233
test_simulate.R simulate simulate uses the local RNG seed PASS 5 4.946
test_simulate.R simulate simulate errors if distribution-free variables are not fixed PASS 1 0.128
test_simulate.R simulate simulate errors if a distribution cannot be sampled from PASS 1 0.239
test_simulate.R simulate simulate errors nicely if nsim is invalid PASS 3 0.277
test_syntax.R syntax distribution<- works in models PASS 2 5.800
test_syntax.R syntax distribution() works PASS 3 0.048
test_syntax.R syntax distribution<- errors informatively PASS 9 0.926
test_syntax.R syntax distribution() errors informatively PASS 1 0.086
test_transforms.R transforms transformations work as expected PASS 18 2.681
test_transforms.R transforms imultilogit errors informatively PASS 1 0.128
test_truncated.R truncated truncated normal has correct densities PASS 4 0.685
test_truncated.R truncated truncated lognormal has correct densities PASS 4 0.290
test_truncated.R truncated truncated gamma has correct densities PASS 4 0.236
test_truncated.R truncated truncated inverse gamma has correct densities PASS 4 0.238
test_truncated.R truncated truncated weibull has correct densities PASS 4 0.249
test_truncated.R truncated truncated exponential has correct densities PASS 4 0.186
test_truncated.R truncated truncated pareto has correct densities PASS 4 0.221
test_truncated.R truncated truncated student has correct densities PASS 4 0.445
test_truncated.R truncated truncated laplace has correct densities PASS 4 0.210
test_truncated.R truncated truncated beta has correct densities PASS 4 0.546
test_truncated.R truncated truncated cauchy has correct densities PASS 4 0.207
test_truncated.R truncated truncated logistic has correct densities PASS 4 0.186
test_truncated.R truncated truncated f has correct densities PASS 4 0.284
test_truncated.R truncated truncated chi squared has correct densities PASS 4 0.188
test_truncated.R truncated bad truncations error PASS 2 0.176
test_variables.R variables variable() errors informatively PASS 6 0.854
test_variables.R variables constrained variable constructors error informatively PASS 6 0.405
test_variables.R variables variable() with universal bounds can be sampled correctly PASS 1 7.029
test_variables.R variables variable() with vectorised bounds can be sampled correctly PASS 1 6.040
test_variables.R variables cholesky_variable() can be sampled correctly PASS 1 41.877
test_variables.R variables cholesky_variable() correlation can be sampled correctly PASS 1 16.133
test_variables.R variables simplex_variable() can be sampled correctly PASS 1 6.435
test_variables.R variables ordered_variable() can be sampled correctly PASS 1 5.452
test-diagrammer-installed.R diagrammer-installed DiagrammeR installation is checked SKIPPED 1 0.004 ๐Ÿ”ถ
test-message_if_using_gpu.R 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 message_if_using_gpu message_if_using_gpu does not message when option set PASS 1 0.043
test-message_if_using_gpu.R message_if_using_gpu message_if_using_gpu does message when option set PASS 1 0.070
test-message_if_using_gpu.R message_if_using_gpu is_using_gpu and is_using_cpu work PASS 4 0.021
test-message_if_using_gpu.R message_if_using_gpu calculate provides a message when GPU is set PASS 2 0.204
test-message_if_using_gpu.R message_if_using_gpu calculate/mcmc does not message when option set PASS 2 4.227
test-message_if_using_gpu.R message_if_using_gpu calculate/mcmc does message when option set PASS 2 3.480
test-message_if_using_gpu.R message_if_using_gpu mcmc provides a message when GPU is set PASS 2 6.841
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability tensorflow returns appropriate thing with โ€˜dimโ€™ PASS 6 0.056
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability Tensor behaves as we expect PASS 3 0.640
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability shape returns right thing PASS 15 0.579
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability TensorShape conversions remain stable PASS 5 0.262
test-tensorflow-rpkg-stability.R tensorflow-rpkg-stability shape returns appropriate TensorShape object PASS 17 1.028
test-tensorflow-rpkg-stability.R 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

yonicd avatar Feb 15 '23 12:02 yonicd