Viewing Content Runtime Settings
Problem
You want to get the language runtimes for a content item.
Solution
from posit import connect
= connect.Client()
client
= client.content.find_one(prefix="Data Science Quarterly Report") item
Example output
item.py_version>>> 3.7.2
item.quarto_version>>> 0.9.37
item.r_version>>> 4.1.1
library(connectapi)
<- connect()
client
#### User-defined inputs ####
# 1. Specify the GUID for the content item you wish to examine.
<- "154bd2af-e8fa-4aa4-aab8-dcef701f4af9"
guid ###########################
library(connectapi)
<- connect()
client <- get_content(client, guid = guid)
item $r_version
item$quarto_version
item$py_version item
Your call to get_content
can specify an item by its guid
, or with its name
and owner_guid
. You can find the content GUID in the Info panel of the content sidebar in the Connect Dashboard.
1] "3.7.2"
[1] "0.9.37"
[1] "4.1.1" [