An open API service indexing awesome lists of open source software.

https://github.com/JosiahParry/plumber-excel

A small example of POSTing and reading an excel file with Plumber
https://github.com/JosiahParry/plumber-excel

Last synced: 5 months ago
JSON representation

A small example of POSTing and reading an excel file with Plumber

Awesome Lists containing this project

README

        

---
title: "Posting Excel files with Plumber"
output: github_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

This repository contains a small example of a plumber API which can takes an Excel file via POST request, then reads that file and returns it as plain text.

There are 4 R scripts in this repository.

* `plumber.R` defines the plumber API
* `activate.R` starts the micro-service on the local host
* `post_excel.R` contains a function definition to POST files and return a tibble
* `example.R` will start the plumber service, load the `post_excel()` function, and run it on the `test.xls` file included in the repository (contains American Community Survey data)