inst/doc/installation.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(greta)

## -----------------------------------------------------------------------------
#  install_greta_deps()

## ----install_tensorflow, eval = FALSE-----------------------------------------
#  reticulate::install_miniconda()
#  reticulate::conda_create(
#          envname = "greta-env-tf2",
#          python_version = "3.10"
#        )
#  reticulate::conda_install(
#          envname = "greta-env-tf2",
#          packages = c(
#            "tensorflow-probability==0.23.0",
#            "tensorflow==2.15.0"
#          )
#        )

## ----install-deps-plain, eval = FALSE-----------------------------------------
#  reticulate::install_miniconda()
#  reticulate::conda_install(
#          packages = c(
#            "tensorflow-probability==0.23.0",
#            "tensorflow==2.15.0"
#          )
#        )

Try the greta package in your browser

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

greta documentation built on April 4, 2025, 12:37 a.m.