1

我正在尝试在数据块中安装 RDCOMClient,以便可以通过 Outlook 发送电子邮件。

以下是我在集群中的代码:

devtools::install_github("omegahat/RDCOMClient")
library(RDCOMClient)

这是我得到的错误:

知道为什么会发生这种情况吗?

  (converted from warning) installation of package ‘/tmp/Rtmp0TxpWK/file118672a6f234/RDCOMClient_0.94-0.tar.gz’ had non-zero exit status
Downloading GitHub repo omegahat/RDCOMClient@master
Installing package into ‘/databricks/spark/R/lib’
(as ‘lib’ is unspecified)
* installing *source* package ‘RDCOMClient’ ...
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG     -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-V28x5H/r-base-3.6.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c COMError.cpp -o COMError.o
In file included from COMError.cpp:1:0:
RCOMObject.h:23:10: fatal error: windows.h: No such file or directory
 #include <windows.h>
          ^~~~~~~~~~~
compilation terminated.
/usr/lib/R/etc/Makeconf:177: recipe for target 'COMError.o' failed
make: *** [COMError.o] Error 1
ERROR: compilation failed for package ‘RDCOMClient’
* removing ‘/databricks/spark/R/lib/RDCOMClient’
Error : Failed to install 'RDCOMClient' from GitHub:
  (converted from warning) installation of package ‘/tmp/Rtmp0TxpWK/file118672a6f234/RDCOMClient_0.94-0.tar.gz’ had non-zero exit status```
4

1 回答 1

1

这个库是为在 MS Windows 上工作而设计的,因此它不能在 Databricks 平台下使用的 Linux 上使用。

如果要发送消息,则需要使用特定于您拥有 Databricks 的云的服务:AWS 上的 SNS 或 CES,或Azure 上的 SendGrid

于 2020-10-13T14:24:38.083 回答