I'm running R script in OpenCPU/Docker and looking for the way how I can run the script that will create background process and returning back the message that the process has started. Something like this:
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')
}
How can I run the fun2 in the background? All functions are inside the package and I have tried Rscript but with no success. Any ideas or packages for this? I believe a lot of people already went thru this.