Support cookbook in `connectapi`: Viewing Execution Environment Runtimes
@toph-allen is already working on this.
Since Oct 9, 2024.
Assessment
This issue has not been assessed yet.
Description
The code below imagines a basic / bare-bones approach, but execution environments are a resource class with CRUD methods, so — thinking about it, that should be our approach.
So, this looks like
Viewing Execution Environment Runtimes
library(connectapi)
IMAGE_NAME <- "ghcr.io/rstudio/content-pro:r4.1.3-py3.10.4-bionic"
client <- connect()
all_images <- get_environments(client)
environments[[IMAGE_NAME]]$runtimes
# A tibble: 3 × 3
language version path
<chr> <chr> <chr>
1 Python 3.10.4 /opt/python/3.10.4/bin/python3
2 Quarto 1.0.35 /opt/quarto/bin/quarto
3 R 4.1.3 /opt/R/4.1.3/bin/R
Notes
The subsetting looks kinda janky. I'm assuming here that(3) a list of environments, each an object with multiple fields including runtimes;environmentsis a list of environments with more than just runtimes, but if all we care about here is runtimes, I guess I could imagine a few return formats: (1) a data frame with a column for environment name; (2) a list of environments, each a list with multiple fields including runtimes;(4) a list of runtime tibbles.[Update] We should do number (3).
- Dominant language
- R
- Stars
- 54
- Forks
- 27
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/connectapi
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
posit-dev/connectapi#249 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
posit-dev/connectapi#527 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
posit-dev/connectapi#526 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
posit-dev/connectapi#506 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
posit-dev/connectapi#486 ·
All issues in posit-dev/connectapi
Similar issues
-
documentation pkg infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiverse-trace/epiparameter#511 ·
-
function:write_dwc
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Urgent request: Due to vulnerabilities move to API version 12.6.1 (12.6.2 eventually) or 13.1.1 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jbkunst/highcharter#849 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100