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
0
votes
0 answers

Install my R Package on a public OpenCPU server

I've used this tutorial to create R project and upload it to my Git repository. Now I want to publish this project on a OpenCPU server. As it's said here, "any R package on Github can be used remotely on OpenCPU through the /ocpu/github/…
Klausos Klausos
  • 15,308
  • 51
  • 135
  • 217
0
votes
0 answers

OpenCPU plot layout error

I am using OCPU to plot some charts from the SixSigma package. It works fine in RStudio, it works perfect using the Public OCPU server, but when I try to use the same function in a Linux box I've setup installing OCPU 1.4 using apt-get as…
Rafael
  • 31
  • 4
0
votes
1 answer

opencpu package or namespace load failed for 'rJava'

I have install.packages("rJava") in R it is ok library(rJava) is ok but when I issue GET request "../library/rJava/R" to opencpu server, it can't be accessed. ../library/rJava is ok error:HTTP 400 Bad Request,package or namespace load failed for…
Fire
  • 93
  • 9
0
votes
1 answer

OpenCPU Functions

I am trying out the OpenCPU software for making R-based functions available as web services. So I created (for testing purposes) a function that takes TRUE/FALSE and returns one of two strings as a result. I managed to get a web service running (in…
Daryl McCullough
  • 303
  • 5
  • 20
0
votes
1 answer

Use data frames with OpenCPU's JavaScript library

I've been trying to access and fool around with data frames using OpenCPU's JS library for ages now, but no matter what I try, I can't seem to get it to work. Here's my latest code sample, very straightforward: var dat = [1, 2, 3]; var dat2 = ["a",…
vinit_ivar
  • 610
  • 6
  • 16
0
votes
1 answer

Asynchronous calls in OpenCPU

I would like to run OpenCPU job asynchronously and collect its results from a different session. In Rserve + RSclient I can do the following: RS.eval(connection, expression, wait = FALSE) # do something while the job is running and then when I'm…
Lukasz
  • 148
  • 11
0
votes
2 answers

Location of temporary files in OpenCPU Single-User Server

I'm beginning to explore OpenCPU via the single-user server on OS X Mavericks, and was wondering where the temporary files are stored. For example, if I run curl http://localhost:9344/ocpu/library/stats/R/rnorm/ --data n=50 I get notification that…
Alex Ioannides
  • 1,204
  • 9
  • 10
0
votes
1 answer

OpenCPU fail on mobil devices

I have recently begun toying with OpenCPU and I must admit I am very impressed with it. Though, I have run into a strange problem. When I try to access an application that I am currently working on, on my laptop, everything is fine. But when I do it…
Bjerring
  • 35
  • 4
0
votes
1 answer

How do you custom format opencpu output

I have a csv file like this: DateTime Server1 Server2 Server3 8/24/2014 15:20 6.09 5.7 5.21 8/24/2014 15:55 4.54 4.38 5.33 8/24/2014 16:04 5.03 4.52 4.92 8/24/2014 16:18 4.93 4.61 5.56 8/24/2014 16:27 6.27 4.18 …
user1471980
  • 10,127
  • 48
  • 136
  • 235
0
votes
0 answers

how do you assign the output of of ocpu.req to a variable in opencpu/javascript

I am trying to create a self based opencpu app where user will upload a csv file, will be able to chart csv file: I have this code: $(document).ready(function(){ $("#submitbutton").on("click", function(){ //arguments var…
user1471980
  • 10,127
  • 48
  • 136
  • 235
0
votes
1 answer

how do you start opencpu service on SUSE

I installed opencpu on suse version 11. When i do this command from the R console: library(opencpu) Opencpu starts for single user, I can check the test page. However, I actually need to install opencpu on a server, where multiple people can…
user1471980
  • 10,127
  • 48
  • 136
  • 235
0
votes
1 answer

Using sqldf & RPostgrSQL in opencpu app

I'm creating a very simple sqldf app where I want to query postgresql database and return results. Here is my R code: getproperties <- function(name="") { options(sqldf.RPostgreSQL.user ="user", sqldf.RPostgreSQL.password ="password", …
kesavkolla
  • 3
  • 1
  • 3
0
votes
0 answers

What is the best practise to run long runnig calculations with OpenCPU?

Hi I want to use the power and flexibility of OpenCPU to start long runnig calculations (several minutes or so). I am facing issues where OpenCPU terminates processing of given scripts. I have modified /etc/opencpu/server.conf option timelimit.post…
richi
  • 1
0
votes
1 answer

Is there an opencpu equivalent to browser()?

Is it possible to insert a browser statement (or equivalent) in your R code with opencpu and when the ajax or plot call is made the R session (or Rstudio session) from which the opencpu server instance is running will stop and allow debugging?
0
votes
1 answer

opencpu returns numbers with max 5 digits

I noticed that if I return my R results that numbers are limited to 5 digits, e.g. 100.34 while R is giving me 100.344523. Is it possible to increase this? I found that you can set the amount of digits in toJSON, but how to do that with…
ricoderks
  • 1,619
  • 9
  • 13
1 2 3
17
18