survos / platform-api-r

Sample programs demonstrating calls to the API
0 stars 0 forks source link

Modify mcsds_sstest.R to use API instead of CSV #1

Open tacman opened 9 years ago

tacman commented 9 years ago

mcsds_sstest.R uses a CSV dump, what it should use is the API.

Since this needs to be somewhat general, we need to ask the user what wave or job they want. In a PHP or perl script, we'd probably get it from the command line. Perhaps there's a way to do this as well, and when it's run in an interactive environment, it can simply use the default (which the user can change).

For this, I think we can use

library(getopt)

or littler.

The endpoint, username and password for this script should be in an include file that isn't on github, let's say "settings.R". But there should be a settings.R.dist file, which has the shell of what needs to be filled in. Maybe config.R is a better name?