Zdieľať cez


About Microsoft R Client

Important

This content is being retired and may not be updated in the future. The support for Machine Learning Server will end on July 1, 2022. For more information, see What's happening to Machine Learning Server?

Microsoft R Client is a free, community-supported, data science tool for high performance analytics. R Client is built on top of Microsoft R Open so you can use any open-source R package to build your analytics. Additionally, R Client includes the powerful RevoScaleR technology and its proprietary functions to benefit from parallelization and remote computing.

R Client allows you to work with production data locally using the full set of RevoScaleR functions, but there are some constraints. Data must fit in local memory, and processing is limited to two threads for RevoScaleR functions. To work with larger data sets or offload heavy processing, you can access a remote production instance of Machine Learning Server from the command line or push the compute context to the remote server. Learn more about its compatibility.

Machine Learning Server vs R Client

Machine Learning Server and Microsoft R Client offer virtually identical R packages, but each one targets different scenarios. R Client is intended for data scientists who create solutions that run locally. Machine Learning Server is commercial software that runs on a range of platforms, at much greater scale, with infrastructure for handling major workloads, on client-server topologies that support remote access over authenticated connections.

You can work with R Client standalone. You can also use it with Machine Learning Server, where you learn and develop on R Client, and then migrate your work to Machine Learning Server or execute it remotely on a Machine Learning Server whenever you need the scale, support, and infrastructure of a server configured for operationalization.

  • From R Client, shift data-centric RevoScaleR operations to a remote Machine Learning Server by creating a remote compute context. Remote compute context is supported for SQL Server Machine Learning Services or a Spark cluster. Typically, you shift the compute context to bring computations to where the data resides, thus avoiding data transfer over the network.
  • From R Client, run arbitrary R code on a remote production instance of Machine Learning Server. This is a general-purpose capability: from a command line, you can switch between local and remote sessions interactively, useful for testing, administration, or to use the additional processing power of a production server. For remote code execution, use mrsdeployand remoteLogin() or remoteLoginAAD(). For more information, see Execute on a remote server .

Get started with R Client

Getting started with Microsoft R Client is as easy as 1-2-3. Click a step to get started:

Step 1

1. Install R Client

The first step is to download Microsoft R Client for your operating system and install it. To learn more about the supported platforms or installation steps, please see the following articles:

2. Configure Your IDE

While R is a command-line driven program, you can also use your favorite R integrated development environment (IDE) to interact with Microsoft R Client. To do so, you must point that IDE to the R Client R executable. This way, whenever you execute your R code, you'll do so using R Client and benefit from the proprietary packages installed with R Client. R IDE options include RStudio, or any other R development environment.

  • Set up RStudio for R Client on Windows or Linux: RStudio is another popular R IDE. To make R Client the default R engine for RStudio, update the path to R. For example, point to C:\Program Files\Microsoft\R Client\R_SERVER\bin\x64 on Windows.

Similarly, on Linux add "R_LIBS_SITE=/opt/microsoft/rclient/3.5.2/libraries/RServer" on bottom of the file "/opt/microsoft/rclient/3.5.2/runtime/R/etc/Renviron". Source.

After you configure the IDE, a message appears in the console signaling that the Microsoft R Client packages were loaded.

Important

You can connect remotely from your local IDE to an Machine Learning Server instance using functions from the mrsdeploy package. Then, the R code you enter at the remote command line executes on the remote server. This is very convenient when you need to offload heavy processing on server or to test your analytics during their development. Your Machine Learning Server administrator must configure Machine Learning Server for this functionality.

3. Try Out R Client

Now that you've installed R Client, you can start building and running some R code. Launch R on the command line or in your IDE and:

When ready, you can run that R code using R Client or even send those R commands to a remote Machine Learning Server for execution if Machine Learning Server is also installed in your organization.

What's new in Microsoft R Client

Microsoft R Client 3.5.2

This release of R Client, built on open-source R 3.5.2, is at the same functional level as Machine Learning Server 9.4. Download R Client from https://aka.ms/rclient (Windows) or https://aka.ms/rclientlinux (Linux).

Microsoft R Client 3.4.3

This release of R Client, built on open-source R 3.4.3, is at the same functional level as Machine Learning Server 9.3.

R Client includes these enhancements:

  • R Client (Linux) now supports a remote SQL Server compute context on Windows.
  • sqlrutils is now supported for R Client (Linux).

Microsoft R Client 3.4.1

This release of R Client, built on open-source R 3.4.1, is at the same functional level as Machine Learning Server 9.2.1. For more information about features in that release, see here.

Microsoft R Client 3.3.3

This release of R Client, built on open-source R 3.3.3. Key release features include:

  • Installations on Linux are now possible for R Client

  • Several of the packages installed have been updated. Learn more about here.

Microsoft R Client 3.3.2

The following release notes apply to Microsoft R Client, which can be downloaded from https://aka.ms/rclient/download.

  • New enhanced Microsoft R Client Getting Started guide

  • A new 'version check' and auto-update is now possible using CheckForUpdates() in your R Console

  • Offline installations are now possible for R Client

  • New packages now bundled with Microsoft R Client:

    • mrsdeploy - adds remote execution and web service deployment from R Client 3.3.2 to a remote R Server 9.0.1 instance
    • MicrosoftML - adds machine learning algorithms to R script that executes on either R Client or R Server
    • olapR- adds MDX query support through connections to OLAP cubes on a SQL Server 2016 Analysis Services instance
    • and the packages bundled with Microsoft R Open 3.3.2

    Learn more about the new and updated packages in this release.

  • Updated end-user license agreement

  • Telemetry collection is now enabled. Learn more about this feature and how to turn it off.

Learn More

You can learn more with these guides: