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
- Host: GitHub
- URL: https://github.com/JosiahParry/plumber-excel
- Owner: JosiahParry
- Created: 2020-02-28T19:47:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-28T19:53:30.000Z (about 5 years ago)
- Last Synced: 2024-12-02T04:37:18.569Z (5 months ago)
- Language: R
- Homepage: http://josiahparry.com/post/2020-03-01-excel-in-prod/
- Size: 16.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - JosiahParry/plumber-excel - A small example of POSTing and reading an excel file with Plumber (R)
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)