我正在尝试在数据库中安装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```发布于 2020-10-13 22:24:38
这个库是为在MS Windows上工作而设计的,因此它不能在Databricks平台下使用的Linux上使用。
如果您想要发送消息,您需要使用特定于您拥有数据库的云的服务:SNS or CES on AWS或SendGrid on Azure。
https://stackoverflow.com/questions/64323951
复制相似问题