次の方法で共有


Command-line install of R Server 9.1 for Windows

This article provides syntax and examples for running RServerSetup.exe from the command line. You can use command-line parameters for an internet-connected or offline installation. A command-line installation requires administrator permissions.

Before you start, review the following articles for system requirements, prerequisites, download links, and steps:

Command-line options

You can run RServerSetup.exe from the command line with options to expose or hide the wizard, set an install mode, or specify options for adding features or using custom folder locations.

User Interaction Options

Parameter Description
/full Invokes the wizard.
/quiet Hides the wizard, running a silent installation with no interaction or prompts. EULA acceptance is automatic for both MRS and MRO.
/passive Equivalent to /quiet in this release.

Install Modes

Parameter Description
/install Runs RServerSetup.exe in install mode, used to add R Server or the pre-trained machine learning models
/uninstall Removes an existing installation of R Server.
/modify Runs RServerSetup.exe in modify mode. Setup looks for an existing installation of R Server 9.1 and gives you options for changing an installation (for example, you could add the pre-trained models, or uninstall the server). Use this option if you want to rerun (or repair) an installation.

Install Options

Parameter Description
/offline Instructs setup to find .cab files on the local system in the mediadir location. In this release, two .cab files are required: SRO_3.3.3.0_1033.cab for MRO, and MLM_9.1.0.0_1033.cab for the machine learning models.
/installdir="" Specifies the installation directory. By default, this is C:\Program Files\Microsoft\R Server\R_SERVER.
/cachedir="" A download location for the .cab files. By default, setup uses %temp% for the local admin user. Assuming an online installation scenario, you can set this parameter to have setup download the .cabs to the folder you specify.
/mediadir="" The .cab file location setup uses to find .cab files in an offline installation. By default, setup uses %temp% for local admin.
/models Adds the pre-trained machine learning models. Use with /install.

Default installation

The default installation adds Microsoft R Server (MRS) and its required components: Microsoft R Open (MRO) and .NET Core used for operationalizing analytics and machine learning. The command-line equivalent of a double-click invocation of RServerSetup.exe is rserversetup.exe /install /full.

A default installation includes the MicrosoftML package, but not the pre-trained models. You must explicitly add /models to an installation to add this feature.

Examples

  1. Run setup in unattended mode with no prompts or user interaction to install all features, including the pre-trained models.

    rserversetup.exe /quiet /models

  2. Add the pre-trained machine learning models to an existing installation. The pre-trained models are inserted into the MicrosoftML package. Once installed, you cannot incrementally remove them. Removal will require uninstall and reinstall of R Server.

    rserversetup.exe /install /models

  3. Uninstall the software in unattended mode.

    rserversetup.exe /quiet /uninstall

  4. Offline install requires two .cab files that provide MRO and other dependencies. The /offline parameter instructs setup to look for the .cab files on the local system. By default, setup looks for the .cab files in the %temp% directory of local admin, but you could also set the media directory if the .cab files are in a different folder. For more information and .cab download links, see Offline installation.

    rserversetup.exe /offline /mediadir="D:/Public/CABS

See Also

Introduction to R Server What's New in R Server Supported platforms
Known Issues
Microsoft R Getting Started Guide
Configure R Server to operationalize your analytics