Sign inSign up

heymp/r-service

By heymp

Updated about 7 years ago

Image
0

4.4K

heymp/r-service repository overview

r-service

Microservice for running r code.

Usage

Start the docker container that is running the r-service on port 3000

docker run -p 3000:3000 heymp/r-service

Create an example R file

touch example.R

Add some R code to the file

echo "a <- 2
b <- 2
print(a + b)" >> example.R

Curl the endpoint with r-code to process

curl -X POST --data-binary @example.R http://localhost:3000

You should see the following output

[1] 4

Development

git clone https://github.com/heyMP/r-service.git
cd r-service
docker-compose up --build
``

Tag summary

Content type

Image

Digest

Size

1.1 GB

Last updated

about 7 years ago

docker pull heymp/r-service