-
Notifications
You must be signed in to change notification settings - Fork 18
Scripting Manual
Scripting provides a way to programmatically access the data in OpenSHAPA, both within and across files or studies. There are two flavors available: Ruby Scripting and R Scripting. Ruby Scripting is designed to do things like add new variables, cells, or arguments and write those back to the database, while R scripting is designed to generate statistics about your data. Currently, R Scripting is much newer so there are not as many helper methods or example scripts, but for those who are familiar with R and want to dive in, you are encouraged to do so!
The Ruby scripting API provides many helper functions that will allow you to easily get started. Most importantly, we would like to develop a community of scripts from many different labs! A script library is available, where the community (as well as developers) will be able to send new scripts and helper functions that can extend the API.
Please post on the OpenSHAPA Support Page any questions you have regarding scripts, and we will do our best to help out. When posting there, be sure to include a script and an example file that we can run it on so we can help faster.
Select the manual that you would like below to get started!