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

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.

Author

Tal Galili and A. Jonathan R. Godfrey and Chanyub Park

Examples

if (FALSE) { install.nodejs() install.nodejs(,"Current") install.nodejs(,"LTS") }