View source: R/setup-project.R
proj_py_pkg_installed | R Documentation |
Checks if a specified package, and optionally a specific version, is installed in the active Python environment. The function retrieves a list of installed packages and searches for the specified package.
proj_py_pkg_installed(pkg, version = NULL)
pkg |
The name of the package to check. |
version |
Optional specific version to check for. If provided, checks for the package and the specific version. |
Logical indicating whether the specified package (and version) is installed.
proj_py_pkg_installed("numpy")
proj_py_pkg_installed("pandas", "1.1.5")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.