Questions tagged [opencpu]

OpenCPU is a software framework for embedded statistical computation and reproducible research. The server exposes a web API interfacing R, Latex and Pandoc.

OpenCPU provides a REST API to the R computing language. One of the goals is to be able to embed R functionality in scalable systems and web applications, without requiring the user or system to install R.

OpenCPU deals with some of the technicalities that come with R and statistical computing, so that you can focus on your application. Furthermore, OpenCPU implements the concept of Open Computing. In a nutshell this comes down to the following:

Any client can execute arbitrary R code on an OpenCPU server. All R code on the server is by definition Open Source, and readable by anyone. When you publish your own code on the server, it authomatically becomes Open Source. A helpful UNIX analogy is that you have at least r-x privileges on anything on the system, and you rwx in your home directory.

We can mention the two sides of opencpu:

  • On the server side, opencpu serves R packages
  • On the front end side, opencpu is also a js library to interact with the REST API
268 questions
1
vote
1 answer

Where is server.conf file kept openCPU ubuntu

Sorry if this is answered elsewhere, or requires a trick. I have installed openCPU on an ubuntu xenial-16.04 instance. I'd like to lengthen the timelimit.post value as instructed in the /etc/opencpu/server.conf file. Trouble is I can't find…
Ross Ireland
  • 193
  • 1
  • 5
1
vote
0 answers

OpenCPU API - Console output

Using the current version of OpenCPU, I would like to raise exceptions to the front end based on the output of OpenCPU API /console URL however this is only displaying the Errors but no Warnings which can be helpful at times. For example I have some…
exwhyz
  • 21
  • 4
1
vote
1 answer

Authoring OpenCPU-Apps on Cloud Server without github?

After setting up an OpenCPU-Server and some first steps in this framework, I'm now looking forward to writing my first OpenCPU App and have already composed a package for this. As this blog post states: By including web pages in the /inst/www/…
Comfort Eagle
  • 2,112
  • 2
  • 22
  • 44
1
vote
0 answers

What are the opencpu cloud's security profile?

I modified the /etc/apparmor.d/opencpu.d/custom file to allow opencpu to manipulate the local file. In fact, this command can run successfully: curl http://localhost/ocpu/library/testg/R/hello -d…
1
vote
1 answer

Test R app via openCPU localy

I wrote an R package and now I want to provide let's say a small demo fronted as a webapplication. For this I already wrote a index.html file which I saved to the /inst/www/ folder. I also installed the opencpu package which works fine…
HolgerBarlt
  • 307
  • 1
  • 18
1
vote
1 answer

Unparsable argument: 5PL getting this error while trying to post the file through pycurl in python

I am trying to post a file and a couple of arguments to a function at the given URL. But I am getting an error (Unparsable argument: 5PL). Can anyone help to fix this error? import pycurl c = pycurl.Curl() values = [ ("infile",…
Dookoto_Sea
  • 521
  • 1
  • 5
  • 16
1
vote
1 answer

Can the timeout for the temporary file created by opencpu be extended?

I have several functions that return a graph or a table in an image format. After they are created I've referred to them using the link. The problem is that some times I send those links to third party, and by the time they read them the link is…
Angelo
  • 13
  • 3
1
vote
0 answers

R : Creating a RESTful API for given R script that takes in parameters and returns a calculated value via a GET call

I have an R script that takes in arguments and returns a float value based on this input. I need to convert it into a RESTful API so that it can be accessed via a URL GET call. I have looked into the same and came across some very promising looking…
1
vote
0 answers

Configuring dma Unix

I am trying to install OpenCPU inside a docker container. After some steps, this message appears: I am quite new to Linux because I am a Windows user. I found nothing on my research so I am asking this question. Can I just choose some random mail…
PhilG
  • 351
  • 1
  • 4
  • 15
1
vote
1 answer

OpenCPU slow startup after period of inactivity

we have a OpenCPU docker container running to process our models in R. It never needs to shut down. We have put every dependency we could think of in the preload section of opencpu-server's config. Usually the models take less than 2 seconds to…
dpijl10
  • 11
  • 2
1
vote
1 answer

High memory usage in OpenCPU

R requires CPU more than anything else so it is recommended to pick one of the newer generation compute optimized instance types, preferably with a SSD disk. I've recently run into a problem with high memory usage (quickly raising to 100%) during…
makciook
  • 1,537
  • 10
  • 19
1
vote
0 answers

Opencpu webhook for private Github repo doesn't work

I setup an OpenCPU server (running in a container) and tried to deploy some R repos from GitHub using webhooks. That works nicely when repo is public, but when private I've got this response: Failed to read…
1
vote
0 answers

No able to connect to spark cluster via sparklyr package when my custom package method is invoked via OpenCpu

I have created an R package that makes use of the sparklyr capabilities within a dummy hello function. My package does a very simple thing as connection to a spark cluster, print the spark version and disconnect. The package is successfully clean…
efotopoulou
  • 139
  • 3
  • 13
1
vote
1 answer

'Service Timeout' for OpenCPU webhook on Github

I've created a simple package in R and hosted it on Github. I want to create an API using OpenCPU own cloud servers. The procedure is supposed to be simple: just add http://cloud.opencpu.org/ocpu/webhook as a webhook on Github. When I do this,…
Stergios
  • 3,126
  • 6
  • 33
  • 55
1
vote
2 answers

Getting auth sign message when connecting cloud server using opencpu

I am trying to expose a sample r model as API so I created R package. In my local machine , I am able to get the output using the command : curl http://local host/5656/ocpu/library/mypackage/R/tv/json -F "input=@test.csv" But when I am trying the…
Vishnu
  • 110
  • 2
  • 10