Skip to content

Commit a97c6bf

Browse files
20220823 1334 update R installation
1 parent 548e5fb commit a97c6bf

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

docs/machine-learning/install/sql-machine-learning-services-windows-install-sql-2022.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Install SQL Server 2022 Machine Learning Services on Windows
33
description: Learn how to install SQL Server 2022 Machine Learning Services on Windows. You can use Machine Learning Services to execute Python, R, or Java scripts in-database.
44
ms.prod: sql
55
ms.technology: machine-learning-services
6-
ms.date: 08/22/2022
6+
ms.date: 08/23/2022
77
ms.topic: how-to
88
author: WilliamDAssafMSFT
99
ms.author: wiassaf
@@ -77,6 +77,8 @@ If you encounter any installation errors during setup, check the summary log in
7777
- [Install Python](#install-python)
7878
- [Install Java](#install-java)
7979

80+
**Continue to the instructions to [install R](#install-r) or [install Python](#install-python).**
81+
8082
## Install R
8183

8284
5. Download the most recent version of [R 4.2 for Windows](https://cran.r-project.org/bin/windows/base/) for Windows, and install.
@@ -96,19 +98,17 @@ If you encounter any installation errors during setup, check the summary log in
9698
- [CompatibilityAPI Windows](https://go.microsoft.com/fwlink/?LinkID=2193827)
9799
- [RevoScaleR package for Windows](https://go.microsoft.com/fwlink/?LinkID=2193828)
98100

99-
The following sample scripts can be adapted for the installation:
100-
101-
```r
102-
R CMD INSTALL "c:\temp\CompatibilityAPI.zip"
103-
R CMD INSTALL "c:\temp\RevoScaleR.zip"
104-
```
101+
Assuming you have installed version 4.2.0 of R in its default location, for example `C:\Program Files\R\R-4.2.0`, and downloaded the required packages in `C:\temp` directory, the following sample scripts can be adapted for the installation:
105102

106-
8. Configure the installed R runtime with SQL Server. You can change the default version by using the **RegisterRext.exe** command-line utility. The utility is in an R application folder depending on the installation, usually in one of these two locations:
103+
```cmd
104+
cd C:\Program Files\R\R-4.2.0\bin
105+
R.exe CMD INSTALL -l "C:\Program Files\R\R-4.2.0\library" "C:\temp\CompatibilityAPI.zip"
106+
R.exe CMD INSTALL -l "C:\Program Files\R\R-4.2.0\library" "c:\temp\RevoScaleR.zip"
107+
```
107108

108-
- Application installation path: `%ProgramFiles%\R\R-4.2.0\library\RevoScaleR\rxLibs\x64`
109-
- User library path: `%localappdata%\R\win-library\4.2\RevoScaleR\rxLibs\x64`
109+
8. Configure the installed R runtime with SQL Server. You can change the default version by using the `RegisterRext.exe` command-line utility. The utility is in an R application folder depending on the installation, usually in `%ProgramFiles%\R\R-4.2.0\library\RevoScaleR\rxLibs\x64`.
110110

111-
The following script can be used to configure the installed R runtime from the installation folder location of **RegisterRext.exe**. The instance name is "MSSQLSERVER" for a default instance of SQL Server, or the instance name for a named instance of SQL Server.
111+
The following script can be used to configure the installed R runtime from the installation folder location of `RegisterRext.exe`. The instance name is "MSSQLSERVER" for a default instance of SQL Server, or the instance name for a named instance of SQL Server.
112112

113113
```cmd
114114
.\RegisterRext.exe /configure /rhome:"%ProgramFiles%\R\R-4.2.0" /instance:"MSSQLSERVER"
@@ -142,8 +142,8 @@ If you encounter any installation errors during setup, check the summary log in
142142
5. Download the most recent version of [Python 3.10 for Windows](https://www.python.org/downloads/) for Windows. Install using the following options:
143143
1. Launch the Python Setup application and choose **Customize installation**.
144144
1. Verify the box is checked next to the option to **Install launcher for all users (recommended)**.
145-
1. Select all **Optional Features** options.
146-
1. On the **Advanced Options** page, accept the default options and select **Install**. Note the path under **Customize install location**, for example, `c:\Program Files\Python310`.
145+
1. Select all **Optional Features** options, or as desired.
146+
1. On the **Advanced Options** page, check **Install for all users**, accept other default options, and select **Install**. The path under **Customize install location** should not be in a user profile but should be for all users, for example: `C:\Program Files\Python310`.
147147
148148
6. Download the latest version of RevoScalePY package and its dependencies: [revoscalepy Python Windows](https://go.microsoft.com/fwlink/?LinkID=2193924) and install revoscalepy from the Python custom install location. For example:
149149

0 commit comments

Comments
 (0)