uv_run_tool | R Documentation |
Run a Command Line Tool distributed as a Python package. Packages are automatically download and installed into a cached, ephemeral, and isolated environment on the first run.
uv_run_tool(
tool,
args = character(),
...,
from = NULL,
with = NULL,
python_version = NULL,
exclude_newer = NULL
)
tool , args |
A character vector of command and arguments. Arguments are
not quoted for the shell, so you may need to use |
... |
Arguments passed on to
|
from |
Use the given Python package to provide the command. |
with |
Run with the given Python packages installed. You can also
specify version constraints like |
python_version |
A Python version string, or character vector of Python version constraints. |
exclude_newer |
String. Limit package versions to those published before
a specified date. This offers a lightweight alternative to freezing package
versions, helping guard against Python package updates that break a
workflow. Accepts strings formatted as RFC 3339 timestamps (e.g.,
|
uv_run_tool("pycowsay", shQuote("hello from reticulate")) uv_run_tool("markitdown", shQuote(file.path(R.home("doc"), "NEWS.pdf")), stdout = TRUE) uv_run_tool("kaggle competitions download -c dogs-vs-cats") uv_run_tool("ruff", "--help") uv_run_tool("ruff format", shQuote(Sys.glob("**.py"))) uv_run_tool("http", from = "httpie") uv_run_tool("http", "--version", from = "httpie<3.2.4", stdout = TRUE) uv_run_tool("saved_model_cli", "--help", from = "tensorflow")
Return value of system2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.