Downloads and installs the latest version of python 2 or 3 for Windows.

install.python(
  page_with_download_url = "https://www.python.org/downloads/windows/",
  version_number = 3,
  x64 = TRUE,
  ...
)

Arguments

page_with_download_url

a link to the list of download links for Python

version_number

Either 2 or 3. Version 2/3 will lead to download of v2.7.xx/3.6.xx respectively.

x64

logical: fetch a 64 bit version. default is TRUE; used to check architecture of current R session.

...

extra parameters to pass to install.URL

Value

TRUE/FALSE - was the installation successful or not.

Details

Python is a programming language which has two versions under active development. Make sure you know which version is required for the code you have to run, or alternatively, make sure you are developing code that is fit for your chosen version of Python. In addition, the Python installers are specific to 32 or 64 bit windows architectures.

Author

Tal Galili and A. Jonathan R. Godfrey

Examples

if (FALSE) { install.python() install.python(,3) install.python(,2) }