Updating docs to show how to use the same local version and binary packages for Windows servers (#88)

* Update for using the same local version and binary packages for Windows servers.

* Query to get the version of R the server is currently using

* Additional details for proper configuration

* Minor fix

* Fixing the formatting
This commit is contained in:
Nikita Takru 2021-06-17 16:33:51 -07:00 коммит произвёл GitHub
Родитель d154f6a6f2
Коммит 3f303872e9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -28,9 +28,21 @@ Download the latest release from https://github.com/microsoft/sqlmlutils/release
Windows:
To obtain the version of R your server is currently using, please use this query:
```
EXEC sp_execute_external_script
@language = N'R',
@script = N'
v = R.version
OutputDataSet = data.frame(rversion=paste0(v$major, ".", v$minor))',
@input_data_1 = N'select 1'
WITH RESULT SETS ((rversion varchar(max)));
```
Get the version of R which the server is using and install it locally. Then, run the following commands with the same version of R.
From command prompt, run
```
R.exe -e "install.packages('odbc')"
R.exe -e "install.packages('odbc', type='binary')"
R.exe CMD INSTALL sqlmlutils_1.0.0.zip
```
OR