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
1 answer

Unable to install opencpu through CRAN

I have updated to Rstudio 1.1.383 (for Ubuntu 16.04 Xenial AMD64) and R 3.4.2. Am trying to install opencpu package to test standalone R-code before pushing to the cloudserver version of opencpu, but without any luck. I am following the…
Vinnie
  • 35
  • 4
0
votes
1 answer

Does opencpu supports asynchronous call for time consuming R functions?

I have recently created an R package that makes use of sparklyr possibilities. I invoke the package main function from opencpu and pass as argument an url with all my data as a stream. Data stream is successfully analysed in a distributed way via…
efotopoulou
  • 139
  • 3
  • 13
0
votes
0 answers

OpenCPU with JS, functions call returns connection failed error on Android platform?

Has anyone used OpenCPU to call R functions using cordova on Android? It works perfectly on a browser, I used both localhost and an external IP address. But it logs a connection failed error when using Android. I'm using jQuery 1.12 and…
0
votes
1 answer

how to have R opencpu interact with php

I am new to php and have some experience with R opencpu. Suppose I use localhost (127.0.0.1) to host my opencpu with the (default) port of 8004. Then, I cannot run the Apache using the same port. Instead, I have to run it in another port, say 8080.…
WCMC
  • 1,602
  • 3
  • 20
  • 32
0
votes
1 answer

Installing nginx breaks HTTP requests for OpenCPU

I'm trying to install the cache server for OpenCPU (I need to enable caching) on an Ubuntu 16.04 EC2 instance. A dependency of opencpu-cache is the latest version of nginx (I can't install the cache server without it). After I had already installed…
0
votes
0 answers

Using Open CPU to expose R model as rest API

I have built some R models which has some 20 output metrics which I want to show in the frontend UI which is built using ReactJS. The application basically takes CSV files which user uploads and that is fed internally to the R models. My plan is to…
Vishnu
  • 110
  • 2
  • 10
0
votes
1 answer

R, opencpu: Is it possible to leave R running even if I close the web browser?

I have a server (ubuntu system) holding an opencpu website and I have a long for loop of some calculations, which takes a long time. I wonder if it is possible to keep R running in the background even if I close the web browser?
WCMC
  • 1,602
  • 3
  • 20
  • 32
0
votes
1 answer

web applications with opencpu on rstudio server being asked for user and password

I've deployed an application using opencpu on Rstudio server. It's running in AWS. However, when I try to access the page, it asks for a user name and password for the first time. If I want to many people to use this, I do not want this to keep…
Sujay DSa
  • 1,172
  • 2
  • 22
  • 37
0
votes
1 answer

R, opencpu: what exactly is my server address of virtual machine

I am trying to hold a virtual machine opencpu server. I am using VMware Workstation ubuntu system. I followed the instruction of the opencpu manual session 2.1 and 2.2, in which it says After installation is done, we should be able to open a…
WCMC
  • 1,602
  • 3
  • 20
  • 32
0
votes
1 answer

Ubuntu 16.04 - Error Installing Apache2 & Opencpu-server

I'm stuck. I try to install apache, opencpu-server, R but all fails to: opencpu-server is already the newest version (2.0.3-xenial10). 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 3 not fully installed or removed. After this…
juwss
  • 79
  • 1
  • 7
0
votes
0 answers

How to call a custom R script using Android?

I'm looking to build an Android app which calls an R script on clicking a button. I don't know how to get an R script to run using Android. I tried using openCPU but couldn't get ahead with it. Can anyone tell me how to call a custom R script using…
0
votes
1 answer

cache lookup decisions is virtual or physical address based

Whether TLB lookups are done on virtual addresses or physical addresses? When TLB hit then it means virtual address to physical pfn is residing in cache memory or data is residing in cache memory Please provide some pointers where to get detail…
anshkun
  • 105
  • 1
  • 12
0
votes
1 answer

Call a R function in OpenCPU with file arguments

I want to let a user call a custom R function with custom arguments, using a web-based interface. Uploading local files for use should be possible. I tried to implement this using OpenCPU which worked fine until now. The user's code is packed into a…
J0hj0h
  • 894
  • 1
  • 8
  • 34
0
votes
1 answer

Develop private bitbucket app with opencpu

I have a working R script in bitbucket(private account), is it possible to use openCPU to develop a production app with bitbucket? I have built a different working open-source github app with openCPU(single-user server). Just wondering if I can have…
0
votes
1 answer

Installation for OpenCPU

I was following the OpenCPU manual for installing their server (https://opencpu.github.io/server-manual/opencpu-server.pdf, sec 2.2) and everything was installing fine and at the last step I got this message: Adding opencpu user account usermod:…
swirlydino
  • 29
  • 4