全新安装后无法在 SSMS 中 运行 R 脚本

Can't run R script in SSMS after fresh install

试图找出在安装 SQL Server 2019 期间选择 R Services 时安装出了什么问题。我尝试重新启动 SQL 服务和 Launchpad,但没有结果。我还尝试将外部资源池的 RAM 分配 space 增加到 50%,而不是默认的 20%。尝试四处搜索此错误,除了另一个 comment on sqlauthority.com 也没有答案之外,我看不到任何人遇到过相同的错误。

正在尝试 运行 此脚本只是为了确认服务器上安装了 R:

EXECUTE sp_execute_external_script  
  @language = N'R',
  @script = N'OutputDataSet <- InputDataSet',
  @input_data_1 = N'select 1 as hello'
WITH RESULT SETS (([hello] int not null));
GO

产生此错误:

Msg 39012, Level 16, State 14, Line 16 
Unable to communicate with the runtime for 'R' script for request id: DCF675C1-D581-415C-937E-A4D01E07FFE4. Please check the requirements of 'R' runtime.

STDERR message(s) from external script:  
Error: .onLoad failed in loadNamespace() for 'RevoScaleR', details:   
call: inDL(x, as.logical(local), as.logical(now), ...)   
error: fatal error: RevoScaleR cannot be used in this R session anymore, if possible restart R session error code -1066598274, detailed error message might be found in: (standard output unavailable) and (standard error output unavailable) 
Execution halted 
exception while shutting down RxClientPipe: cannot write to BxlServer, child process is dead

如有任何帮助,我们将不胜感激!

所以我真的让它工作了。但请注意,我尝试了许多不同的修复方法,但在我找到适合我的服务器情况的方法之前,它们都不起作用。我发现的最佳指南是 Niels Berglund 发现 post 的博客 here。他经历了几乎所有我经历过的事情,尽管我们得到的错误是不同的。虽然,一旦我移动了 'ExtensibilityData' 文件夹,我最终得到了与 Niels 相同的错误!

但是,似乎可以解决我的问题的简单解决方案是将 SQL 服务器更新到 CU8。我尝试了一切(见下面的链接),但最终是因为 MS 发布了 SQL Server 2019 版本,其中有一个错误!我仍然需要返回并纠正我创建的所有文件夹安全混乱,但我认为只要 MSSQLLaunchpad 有权访问正确的文件夹并且 R 和 Python 配置文件指向一个“好”的文件夹然后它应该全部解决。

尝试的修复: