py_download | R Documentation |
This function downloads and prepares the install of python. Users can select the specific version of python, with the default set at 3.6.8 - a stable version to utilise python's machine learning languages. When prompted to install, you may be given the choice to add Python to the PATH. If you only plan to use one version of python, this would be adviseable. This function currently only works for recent version of Windows, Mac and Linux.
py_download(version = "3.6.8")
version |
Specify a python version as a character string. Refer to "https://www.python.org/downloads/" to see available versions |
For the python install to be recognised by R, its important to close and re-open R, which resets the PATH. As a result, we recommend saving scripts and important files before running this function. R will only close if confirmed by you (the user).
An installed version of python
py_download() py_download(version = "3.9.0")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.