opencpu

Disable directory listing in OpenCPU

帅比萌擦擦* 提交于 2019-12-12 03:45:19
问题 I have been trying to disable directory listing in OpenCPU so our users cannot see the resulting directories and files in the http://server/ocpu/tmp/ directory. I have followed Apache's Directory Listing Configuration and deleted every mention of Indexes in the conf files in /etc/apache2/ and included Options -Indexes in the sites-enabled/opencpu.conf file (in the Location tags) without success. I also looked at the rApache documention without finding any pertinent entry. Does anyone know any

OpenCPU error HTTP 400 Not a graph object

偶尔善良 提交于 2019-12-12 02:44:11
问题 I m using Angularjs and OpenCPU to calculate some data through Igraph R Package Graph is a adjacency matrix/Array generate by java script [[0,1,1,0,1,1,0,0,0,1,1,1,1,1],[1,0,1,1,1,1,1,1,1,1,0,1,1,1],[1,1,0,1,0,1,1,1,1,1,1,1,1,1],[0,1,1,0,1,0,0,0,0,1,0,1,0,0],[1,1,0,1,0,1,0,0,0,1,1,0,1,0],[1,1,1,0,1,0,0,1,0,1,1,1,1,1],[0,1,1,0,0,0,0,1,0,0,1,1,1,1],[0,1,1,0,0,1,1,1,1,1,0,1,0,1],[0,1,1,0,0,0,0,1,0,1,1,0,0,0],[1,1,1,1,1,1,0,1,1,0,0,0,0,1],[1,0,1,0,1,1,1,0,1,0,0,0,1,1],[1,1,1,1,0,1,1,1,0,0,0,0,1,1

How to install OpenCPU? [closed]

风格不统一 提交于 2019-12-11 12:34:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'd like to try OpenCPU in my own server. Official Installation Manual linked from https://public.opencpu.org/pages/download.html is not found. Where can I get install instruction? 回答1: The new version of OpenCPU, which hasn't officially been released yet, runs locally as well: library(devtools); install_github(

rJava fails while invoking RJDBC library from OpenCPU API

冷暖自知 提交于 2019-12-11 12:26:44
问题 Goal : To use RJDBC with OpenCPU AJAX Post call. Use case : I need to connect with Apache phoenix database and get some data. And on that data I am supposed to do analytics. So to connect with Phoenix i am using rjdbc(phoenix doesn't support any other option to connect). Environment : public.opencpu.org Here is what I am trying: html <textarea> library(RJDBC) .. do some data fetching and then r statistics </textarea> <br /> <button id="submitbutton" >Execute</button> <br /> <br /> <div id=

Rmpi, OpenCPU, and Apparmor: DENIED request for “/”

你。 提交于 2019-12-11 05:15:43
问题 I have an R package that sends out a job to the OpenMPI cluster I have running by means of the Rmpi package. All works as expected within an R session run from the console. However, when I try to execute the relevant function with from my OpenCPU server like this (details changed to protect the innocent): curl -XPOST http://99.999.999.99/ocpu/library/MyPackage/R/my_cluster_function I get this error: R call failed: process died. (Other, non-cluster calling functions within the package work as

OpenCPU admin opencpu.demo

浪尽此生 提交于 2019-12-11 04:23:46
问题 I am recieveing an error when I run the admin app on my OpenCPU Server Error Message : Not Found The requested URL /Radmin/call/opencpu.demo/install.opencpu/json was not found on this server. I have the R folder of the opencpu repo and the package installed yet I dont know where the install.opencpu function file is 回答1: I'm not sure where you found the /Radmin/ url, but that feature never made it into opencpu. Try to stick with the stuff from the manual page: www.opencpu.org. 来源: https:/

opencpu does not show installed packages

拜拜、爱过 提交于 2019-12-10 17:31:42
问题 Let me confess first I am new to Docker / opencpu world. here is the issue. I installed Docker from opencpu site on my windows 10 box. I was able to successfully run the docker by "docker run --name myDocker -t -p 80:80 -p 8004:8004 opencpu/rstudio". I successfully installed my R package by "R CMD INSTALL /tmp/AnotherPackage_0.1.0.tar.gz". Only issue now is I cant see my Package in http://localhost/ocpu/test/. so in below figure I cant see my package in right box (which shows all the other

Task model for long-running jobs in OpenCPU?

强颜欢笑 提交于 2019-12-08 04:51:13
问题 To my knowledge, there is no task model in OpenCPU, i.e. one has to wait arbitrarily long with an open TCP connection until the request finishes. One possibility for a task model implementation would be to return a dedicated task uri with status 200 OK immediately for a POST request when one wishes to running a function. The advantage would be that the client would get a result immediately while the job runs on the server in the background. The client would then poll the task URI until it

How to start/stop/flush OpenCPU on CentOS6?

两盒软妹~` 提交于 2019-12-07 12:37:12
问题 I've successfully built and installed OpenCPU and RStudio Server on a CentOS6. Everything is working as expected, and I do get successful GET/POST responses for my local R packages. A couple of things that don't seem to work however: I can't figure a clean way to start/stop/flush OpenCPU. I'm currently using apachectl restart but I'm not even sure that does reload R packages as expected. I tried Jeroen's bash scripts at /usr/lib/opencpu/scripts but they seem to require quite a bit of tweaking

Task model for long-running jobs in OpenCPU?

人走茶凉 提交于 2019-12-07 00:52:29
To my knowledge, there is no task model in OpenCPU, i.e. one has to wait arbitrarily long with an open TCP connection until the request finishes. One possibility for a task model implementation would be to return a dedicated task uri with status 200 OK immediately for a POST request when one wishes to running a function. The advantage would be that the client would get a result immediately while the job runs on the server in the background. The client would then poll the task URI until it returns 201 created , meaning the job has successfully finished, or an error code for unsuccessful calls.