py_download: Downloads and prepares the install of python

View source: R/py_download.R

py_downloadR Documentation

Downloads and prepares the install of python

Description

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.

Usage

py_download(version = "3.6.8")

Arguments

version

Specify a python version as a character string. Refer to "https://www.python.org/downloads/" to see available versions

Details

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

Value

An installed version of python

Examples

py_download()
py_download(version = "3.9.0")

GitTFJ/addeR documentation built on Sept. 6, 2022, 8:55 p.m.