This UPDATED - from version 1: Qlik AAI Load Script Example - R (Qlik Sense and QlikView) - brief document and attached files are intended to get you up and running with a simple example, a template, using Advanced Analytics Integration (AAI) in Qlik load script. Included example is for Qlik Sense, specifically. The use case is scoring of a data set using an advanced algorithm in R during a data load.
Since the February 2018 release of Qlik Sense, AAI supports whole table processing in the load script natively.
Thank you bbb (Steven Pressland) for explaining its use (An Advanced Analytics Integration Timeline😞 "When writing your application script there is now an extended syntax to the load statement, like the FROM or RESIDENT statements that have their specific uses. Qlik can now use the reserved statement, EXTENSION, to specify that the source of the loaded data table will be the result of an AAI function." Look for "Extension R.ScriptEval()" in the example load script.