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:
Родитель
d154f6a6f2
Коммит
3f303872e9
14
README.md
14
README.md
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче