Skip to content

LCBC-UiO/r_cgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R cgi

Example CGI scripts in R

Quick start

  • git clone ... && cd ...
  • PORT=8080 make run
  • open browser and go to http://localhost:8080

Requirements

  • Linux / Mac OS
  • build tools (make, gcc, ...)
  • wget
  • Rscript in PATH

Examples

  • Simple plot
  • Plot with parameters
  • Plot with parameters and dynamic update
  • File upload
  • File upload with parameters

Running examples CGIs from command line

www/plot/get_plot_png.cgi > /tmp/plot.png
QUERY_STRING='width=300&height=300' www/plot_param/get_plot_png.cgi > /tmp/plot.png
cat test_table.csv | www/post/post_file.cgi
cat test_table.csv | QUERY_STRING='filename=/tmp/test123.csv' www/post_param/post_file.cgi

About

Small examples of CGI scripts written in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published