install.python: Downloads and installs python 2 or 3

install.pythonR Documentation

Downloads and installs python 2 or 3

Description

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

Usage

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

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.

Value

TRUE/FALSE - was the installation successful or not.

Author(s)

Tal Galili and A. Jonathan R. Godfrey

Examples

## Not run: 
install.python() 
install.python(,3)
install.python(,2)

## End(Not run)

installr documentation built on Nov. 13, 2022, 1:06 a.m.