Tag: opencpu

背景OpenCpu R在Docker中的过程

我在OpenCPU / Docker中运行R脚本,并寻找如何运行脚本来创build后台进程,并返回进程已启动的消息。 像这样的东西: fun1<-function(arg1,arg2){ #calling different function to run in background, using arg1/arg2, no need #of result now, I will check the result through the file later fun2(arg1,arg2) return('Process has started') } 我如何在后台运行fun2? 所有的function都在包内,我试过Rscript,但没有成功。 任何想法或包? 我相信很多人已经通过这个。

私人Github回购Opencpu webhook不起作用

我设置了一个OpenCPU服务器(运行在一个容器中),并尝试使用webhooks从GitHub部署R repos。 当回购是公开的时候,这很好用,但是当私人我有这个回应: Failed to read https://raw.githubusercontent.com/user/repo/master/DESCRIPTION. Repsitory does not contain a proper R package Failed to read https://raw.githubusercontent.com/user/repo/master/DESCRIPTION. Repsitory does not contain a proper R package 。 该url必须有私人token ,但如何解决它在服务器上? 尝试: 有效载荷URL中的auth_token: https ://ocpu.domain.com/ocpu/webhook?sendmail = false&auth_token = xxxxxxxxxxxxxxxxxxxxxxxx /etc/opencpu/secret.conf中的auth_token .Renviron文件中的GITHUB_PAT SSH密钥 干杯。