Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more detail to greta_sitrep() #679

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

njtierney
Copy link
Collaborator

Relevant issue #612

Goals:

  • R & Rstudio version
  • Greta version - and point to whether installed from CRAN/github etc.
  • Paths to Python, TF, and TFP. This might help debug issues with this
  • Paths to greta env (if used)
  • Note if greta env is used
  • Don't just print TF/TFP versions, list where they are installed
  • List python version, and where it is installed, which environment is used
  • Add various helper functions to identify where TF is installed
  • Add various helper functions to identify where TFP is installed

@njtierney njtierney added this to the 0.6.0 milestone Aug 20, 2024
@njtierney
Copy link
Collaborator Author

Currently can't seem to work out where TF and TFP are installed.

I'm also wondering if a verbose = TRUE option might be useful here? The info is getting a little bit long!

> greta_sitrep()

── R ─────────────────────────────────────
• version: 4.4.2path:
/Library/Frameworks/R.framework/Resources

── greta ─────────────────────────────────
• version: 0.4.5.9000path:
"/Users/nick/github/greta-dev/greta"

── python ────────────────────────────────
✔ python (v3.10) availablepath:
"/Users/nick/github/greta-dev/greta"path:
"/Users/nick/Library/r-miniconda-arm64"

── TensorFlow ────────────────────────────
✔ TensorFlow (v2.15.0) availableR path:
/Users/nick/Library/R/arm64/4.4/library/tensorflowpython path:
"/Users/nick/github/greta-dev/greta"

── TensorFlow Probability ────────────────
✔ TensorFlow Probability (v0.23.0) availa…
• R path:
/Users/nick/Library/R/arm64/4.4/library/tensorflowpython path:
"/Users/nick/github/greta-dev/greta"

── greta conda environment ───────────────
✔ greta conda environment availablepath:
/Users/nick/Library/r-miniconda-arm64/envs/greta-env-tf2/bin/python

── greta usability ───────────────────────
ℹ greta is ready to use!

Compared to:

> greta_sitrep()
✔ python (v3.10) available    
✔ TensorFlow (v2.15.0) availableTensorFlow Probability (v0.23.0) availa…
✔ greta conda environment availablegreta is ready to use!

So perhaps some option like:

greta_sitrep(verbosity = "verbose")

By default, and then some note that appears at the end of the messages that tells you about the verbose option?

Other options could be "quiet", "minimal", "verbose" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

1 participant