tests/testthat/_snaps/misc.md

check_tf_version works

We have detected that you do not have the expected python packages setup.
You can set these up by running this R code in the console:
`install_greta_deps()`
Then, restart R and run:
`library(greta)`
(Note: Your R session should not have initialised Tensorflow yet.)
For more information, see `?install_greta_deps`
We have detected that you do not have the expected python packages setup.
You can set these up by running this R code in the console:
`install_greta_deps()`
Then, restart R and run:
`library(greta)`
(Note: Your R session should not have initialised Tensorflow yet.)
For more information, see `?install_greta_deps`
Code
  check_tf_version("message")
Message <simpleMessage>
  We have detected that you do not have the expected python packages setup.
  You can set these up by running this R code in the console:
  `install_greta_deps()`
  Then, restart R and run:
  `library(greta)`
  (Note: Your R session should not have initialised Tensorflow yet.)
  For more information, see `?install_greta_deps`

define and mcmc error informatively

none of the <greta_array>s in the model are associated with a probability density, so a model cannot be defined
none of the <greta_array>s in the model are associated with a probability density, so a model cannot be defined
could not find any non-data <greta_array>s
model contains a discrete random variable that doesn't have a fixed value, so inference cannot be carried out
none of the <greta_array>s in the model are unknown, so a model cannot be defined
data <greta_array>s cannot be sampled
`x` is a data <greta_array>(s)

check_dims errors informatively

incompatible dimensions: 3x3, 2x2

disjoint graphs are checked

the model contains 2 disjoint graphs
one or more of these sub-graphs does not contain any <greta_array>s that are associated with a probability density, so a model cannot be defined
the model contains 2 disjoint graphs
one or more of these sub-graphs does not contain any <greta_array>s that are unknown, so a model cannot be defined

cleanly() handles TF errors nicely

Fetchez la vache!


Try the greta package in your browser

Any scripts or data that you put into this service are public.

greta documentation built on Sept. 8, 2022, 5:10 p.m.