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
)
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. |
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.