The answer is Yes.
The R node is capable of producing zero, one or more downstream documents.
In the context of R nodes, the
RouteOutput extension supports two extra parameters:
- AsDownstream - marks a spreadsheet being routed from R to be sent as a downstream document to the node instead of the Reporting Documents workbook
- RetainInReport - when the AsDownstream parameter is set to TRUE, this parameter places a copy of the spreadsheet in the Reporting Documents collection.
For example,
1. This R code "RouteOutput(simpleDF, 'My simpleDF-rd')" will only output the result table to be a reporting document in the "Reporting Document" node, and cannot be linked to other nodes for further downstream analysis.
2. To set the interested output from R node as a downstream spreadsheet for further analysis, you can use "RouteOutput" function with "AsDownstream" being TRUE.
For example, R code:
RouteOutput(simpleDF, 'simpleDF-dd', 'simpleDF-dd Header', AsDownstream = TRUE)
This code will lead to an output spreadsheet document icon located at the bottom right corner of the R node.
This output spreadsheet from R node can link to other downstream analysis nodes and serve as input data table for further analysis.