File: py_exe.Rd

package info (click to toggle)
r-cran-reticulate 1.41.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,088 kB
  • sloc: cpp: 5,154; python: 620; sh: 13; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/config.R
\name{py_exe}
\alias{py_exe}
\title{Python executable}
\usage{
py_exe()
}
\value{
The path to the Python executable \code{reticulate} has been configured
to use.
}
\description{
Get the path to the Python executable that \code{reticulate} has been configured
to use. If Python has already been initialized, then \code{reticulate} will
choose the currently-active copy of Python.
}
\details{
This can occasionally be useful if you'd like to interact with Python (or its
modules) via a subprocess; for example you might choose to install a package
with \code{pip}:

\if{html}{\out{<div class="sourceCode">}}\preformatted{system2(py_exe(), c("-m", "pip", "install", "numpy"))
}\if{html}{\out{</div>}}

and so you can also have greater control over how these modules are invoked.
}