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
19
votes
2 answers

Suggestions needed for building R server REST API's that I can call from external app?

I've seen lots of articles about consuming data in R from other RESTful API services, but I have really struggled to find any articles about the reverse. I'm interested in R being the server, and not the client. I'd like a Node.js app to call a…
Mark
  • 538
  • 6
  • 17
15
votes
1 answer

What's the intention of opencpu.org compared to other approaches?

Lately I was pointed to http://opencpu.org/ . Nifty website, but after browsing for a little while I wasn't so sure where it is located in the R landscape compared to e.g. rApache or RPy2. After waiting a long time for the server to come back I was…
Matt Bannert
  • 27,631
  • 38
  • 141
  • 207
11
votes
1 answer

how to display htmlwidgets inside openCPU apps?

We want to display an htmlwidget inside an OpenCPU application.The html is generated by Leaflet without problems, however we have some troubles to display it within the OpenCPU app. We used the following function to generate the Leaflet…
arevaju
  • 163
  • 1
  • 8
7
votes
0 answers

mongolite best practices

I am developing an application using OpenCPU and R, I am totally new to both. I am using mongolite package to connect to MongoDB. There are multiple calls to the DB and connecting every time, takes really long. Plus data processing, plotting etc.…
AGA
  • 71
  • 2
7
votes
1 answer

Using R in Apache Spark

There are some options to access R libraries in Spark: directly using sparkr using language bindings like rpy2 or rscala using standalone service like opencpu It looks like SparkR is quite limited, OpenCPU requires keeping additional service and…
user6022341
6
votes
2 answers

Integrating R and its graphics with existing Javascript/HTML Application

I have an existing Javascript/HTML Application. I wanted to use power of R Programming's scientific computing and graphics. My aim is to, Send some data from Javascript app. Call predefined R functions with the data input. Get the output get the…
Manoj G
  • 1,776
  • 2
  • 24
  • 29
6
votes
1 answer

unable to access R packages under user account in opencpu

I am trying to access R packages which were installed under a user's account from opencpu. I can see that the package is installed when I start R as that user: > installed.packages() Package LibPath …
Ali Guler
  • 63
  • 3
5
votes
1 answer

Parameters to speed up opencpu

I developped an ocpu app to run on an EC2 server but, specially when run on the EC2 server the application (even with just one user, me) is extremely slow and bumping up from a t2.micro to a c3.large doesn't change the slightest thing. To see…
cmbarbu
  • 4,354
  • 25
  • 45
4
votes
2 answers

Error in YAML with R Markdown

I have the following R Markdown script called test.Rmd: --- params: results: value: !r mtcars --- ```{r setup, echo=FALSE, include=FALSE} df <- params$results knitr::kable(df) ``` When I run the following in…
DanMed
  • 61
  • 1
  • 4
4
votes
2 answers

opencpu does not show installed packages

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…
ahsant
  • 1,003
  • 4
  • 17
  • 25
4
votes
1 answer

How can OpenCPU run computationally expensive commands simultaneously?

I currently create an application, which needs to run millions of statistical regressions in a short time. Parallelization of these calculations is one possibility to accelerate the process. The OpenCPU server doesn’t seem to scale well with…
Paul Klemm
  • 265
  • 1
  • 9
4
votes
1 answer

Generic REST/RPC API for Python (OpenCPU Equivalent)

A coworker and I are currently using OpenCPU to expose analytics we write in R to other applications via a REST API. There has been a need recently to leverage some python libraries in a similar manner. From the OpenCPU description: OpenCPU is a…
Cody
  • 3,734
  • 2
  • 24
  • 29
4
votes
1 answer

Are data objects persistent in openCPU's R session?

I would like to provide a web tool that requires access to a large dataset. Preferentially, this R data object should be loaded into memory once and then be available for user-defined queries. Does the openCPU framework support persistant data…
4
votes
1 answer

RStudio Server vs opencpu.org for web based GUI of own package?

Being a RStudio user since its earlier days I just installed RStudio Server on my local ubuntu VM. The browser version acts quick, offers user management etc. – a lot of reasons for me to be impressed here. I also like the fact that integrating it…
Matt Bannert
  • 27,631
  • 38
  • 141
  • 207
3
votes
0 answers

Google Drive authorization from opencpu

I've been trying for a while to use the library opencpu to import some Gdrive files (binary files, not Gsheets or Gdocs) using the R library googledrive. My code works great locally or deployed as a Shiny application but it seems Opencpu can't read…
1
2 3
17 18