installr (version 0.21.0)

install.nodejs: Downloads and installs nodejs LTS or Current

Description

Downloads and installs the latest version of nodejs LTS or Current for Windows.

Usage

install.nodejs(page_with_download_url = "https://nodejs.org/en/download/",
  version_number = "LTS", ...)

Arguments

page_with_download_url

a link to the list of download links for Nodejs

version_number

Either LTS or Current. Version LTS will lead to download of v6.11.X

...

extra parameters to pass to install.URL

Value

TRUE/FALSE - was the installation successful or not.

Details

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

Examples

Run this code
# NOT RUN {
install.nodejs() 
install.nodejs(,"Current")
install.nodejs(,"LTS")
# }

Run the code above in your browser using DataCamp Workspace