如何安排从 postgres 数据库读取数据的 r 脚本的 运行,进行一些分析并将结果数据写入数据库?

How to schedule the run of r script which reads data from postgres database, do some analysis and write resulting data to the database?

我写了一个r脚本文件,它从PostgreSQL数据库中读取数据,做一些分析,预测因变量并将结果写回到数据库中。现在,我想 运行 以固定的时间间隔运行该脚本文件。如何做到这一点?有什么方法可以从 PostgreSQL 运行 this 或任何其他方法 运行 this 吗?请帮助我。

试试这个:
https://github.com/bnosac/cronR - Unix/Linux
https://github.com/bnosac/taskscheduleR - 赢