Skip to content
/ webmice Public

An experimental REST API for the R package mice, built with RestRserve

Notifications You must be signed in to change notification settings

amices/webmice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

69c8810 · Mar 11, 2024
Feb 6, 2024
Jan 19, 2024
Feb 6, 2024
Nov 1, 2023
Jan 17, 2024
Aug 22, 2023
Mar 8, 2024
Nov 20, 2023
Jan 17, 2024
Nov 20, 2023
Jan 25, 2024
Jan 17, 2024
Jan 17, 2024
Jan 17, 2024
Jan 19, 2024
Jan 19, 2024
Sep 13, 2023
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024
Nov 8, 2023
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024
Feb 6, 2024
Feb 14, 2024
Feb 21, 2024
Feb 14, 2024
Jan 17, 2024
Feb 6, 2024
Jan 16, 2024
Feb 6, 2024
Nov 9, 2023
Nov 20, 2023
Jan 16, 2024
Nov 10, 2023

Repository files navigation

webmice: Experimental REST API for Multivariate Imputation by Chained Equations

API - The Noun Project

Summary

We provide a very easy example of a REST API for the R package mice. The HTTP server is run locally on http://localhost:8080/ and also runs a Swagger API endpoint on http://localhost:8080/doc.

Start the REST API

Docker

docker build -t webmice -f docker/Dockerfile .
docker run -it -p 8080:8080 -v </path/to/local/datafolder>:/home/webmice/testdata webmice
# get a shell inside of the docker image for debugging
docker exec -it webmice bash

You only need the -v </path/to/local/datafolder>:/home/webmice/testdata flag if you want to make some of your local data known to the docker image to use them as input data for the HTTP API.

Navigate to your browser http://localhost:8080/doc

Local deploy

If you run the API locally please export the variable WEBMICE_LOC

export WEBMICE_LOC="<path to the webmice folder>"

Start the app:

Rscript webmice.R

Navigate to your browser http://localhost:8080/doc

Acknowledgements

This project was supported by Utrecht University's Open Science Fund.

About

An experimental REST API for the R package mice, built with RestRserve

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published