我正在尝试设置一个自动化作业,该作业构建一个 csv 文件(通过从多个 MySQL 数据库中提取聚合)并每天发送一封电子邮件。如果脚本通过 RStudio 正常运行,则整个脚本将作为本地作业(通过 RStudio 作业 v1.2.1335)运行。但是,当通过taskscheduleR
插件自动执行作业时,它会返回以下错误:
Error in curl::curl_fetch_memory(url, handle = handle) :
Could not resolve host: .domo.com
Calls: <Anonymous> ... request_fetch -> request_fetch.write_memory -> <Anonymous>
Execution halted
我的猜测是我的 DomoR 包fetch
多次屏蔽了该函数:
Welcome to DomoR
Attaching package: 'DomoR'
The following object is masked from 'package:RMySQL':
fetch
The following object is masked from 'package:DBI':
fetch
但我不完全确定这是否是问题所在。我正在通过运行 Microsoft Server 2019 的 aws EC2 实例运行它。