Hello,
I got the following error:
curl -L
http://localhost/ocpu/library/Accumulator/R/Accumulator -d pid=1
argument is of length zero
In call:
if (file == "") file <- stdin() else {
file <- if (nzchar(fileEncoding))
file(file, "r", encoding = fileEncoding)
else file(file, "r")
on.exit(close(file))
}
In my package, I have a line that reads from a file in /tmp folder
varF=file.path("/tmp")
...
temperature <- Sys.glob(file.path(varF, "Temperature.txt"))
I set the permission chmod777 to /tmp folder
I set the permission in /etc/apparmor.d/opencpu.d/custom as follows: To read from any folder and file from /tmp and also read from myfolder123:
/tmp/** rw,
/tmp/** rwkmix,
/tmp/myfolder*/ rw,
/tmp/myfolder*/** rwkmix,
But still getting the above error. The code works fine in R. But I got the errors in opencpu. Please help me to resolve the error.
Thanks