Learn R Programming

installr (version 0.22.0)

install.python: 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 = is.x64(), ...)

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

Examples

Run this code
# NOT RUN {
install.python() 
install.python(,3)
install.python(,2)
# }

Run the code above in your browser using DataLab