Giter VIP home page Giter VIP logo

fileserver's Introduction

R File Server

By Thomas Reinholdsson [email protected]

Install

devtools::install_github("FileServer", "reinholdsson")

Config

A FileServer primarily needs a config-file, e.g. config.yml. It should be an YAML-file with a list of all service names followed by some arguments. For example:

Get custom plot:
  file: functions/plot.r
  output: plot.pdf
  form: forms/plot.yml
Get mtcars dataset:
  file: functions/mtcars.r
  output: mtcars.csv

Further explanation of the available arguments:

file: Path of the function file, which has a structure as follows:

function(input, output) {
  ...
}

where input contain the user inputs from the form and output is the output file object.

output: Filename of the output.

form: A form that is shown in front of the user, which makes it possible to send input values to the function. E.g.

Title:
  - Plot 1
  - Plot 2
  - Plot 3
What is the subtitle?:

help: Help text shown below the select input

readme: Readme file path (.md)

How to use

library(FileServer)
FileServer("config.yml")

It also possible to define defaults by the url

http://localhost:8100/?q=Plot%20Chart&Title=Plot%203

and even to initiate a download

http://localhost:8100/?q=Plot%20Chart&Title=Plot%203&download=1

See also

fileserver's People

Contributors

reinholdsson avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.