unable to access R packages under user account in opencpu

血红的双手。 提交于 2019-12-01 05:17:36

It seems like your home library is not in the default location of /home/ali/. Therefore some additional steps are needed to access your packages.

First of all, the default security profile won't allow OpenCPU to access /limdata/. To verify that this is indeed the problem, have a look at /var/log/kern.log and search for lines containing APPARMOR and DENIED. Please read the section titled Customizing the security profile in the PDF server manual.

To add your home library to the security profile, edit /etc/apparmor.d/opencpu.d/custom and add these lines:

/limdata/ r,
/limdata/** mrix,

Afterwards, restart apparmor and opencpu:

 sudo service apparmor restart
 sudo service opencpu restart

That should take care of the security restrictions. I hope that will do it; honestly I haven't tested a scenario where the home directory is outside of /home but I think if your R_LIBS_USER environment variable is properly configured, it should work. If not let me know :-)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!