Executing R Scripts from within Statistica Visual Basic

A typical use case for leveraging specialized R functionality within Statistica is to call R scripts from inside a Statistica Visual Basic (SVB) macro. This way you can build new modules using the SVB User Interface library and methods implemented in R scripts. Likewise, such functionality is required in order to create Statistica Enterprise SVB analysis configurations, or Statistica Workspace nodes (for Statistica or Statistica Server) that leverage R.

But, in order to provide any non-trivial functionality within an R script in such use cases, you need to be able to parameterize that script with user-selected parameters, variables lists, input spreadsheets, etc. Statistica provides a simple and powerful way to pass such parameters to R scripts.