@@ -94,13 +94,15 @@ azureml_main <- function(dataframe1, dataframe2){
94
94
```
95
95
96
96
After the pipeline is submitted successfully, you can preview the image in the right panel of the module
97
+
98
+ [ !div class="mx-imgBorder"]
97
99
![ Uploaded-image] ( media/module/upload-image-in-r-script.png )
98
100
99
101
## How to configure Execute R Script
100
102
101
103
The ** Execute R Script** module contains sample code that you can use as a starting point. To configure the ** Execute R Script** module, provide a set of inputs and code to execute.
102
104
103
- ![ R-module] ( media/module/upload-image-in -r-script.png )
105
+ ![ R-module] ( media/module/execute -r-script.png )
104
106
105
107
Datasets stored in the designer are automatically converted to an R data frame when loaded with this module.
106
108
@@ -120,25 +122,25 @@ Datasets stored in the designer are automatically converted to an R data frame w
120
122
121
123
To help you get started, the ** R Script** text box is pre-populated with sample code, which you can edit or replace.
122
124
123
- ``` R
124
- # R version: 3.5.1
125
- # The script MUST contain a function named azureml_main
126
- # which is the entry point for this module.
125
+ ``` R
126
+ # R version: 3.5.1
127
+ # The script MUST contain a function named azureml_main
128
+ # which is the entry point for this module.
127
129
128
- # The entry point function can contain up to two input arguments:
129
- # Param<dataframe1>: a R DataFrame
130
- # Param<dataframe2>: a R DataFrame
131
- azureml_main <- function (dataframe1 , dataframe2 ){
132
- print(" R script run." )
130
+ # The entry point function can contain up to two input arguments:
131
+ # Param<dataframe1>: a R DataFrame
132
+ # Param<dataframe2>: a R DataFrame
133
+ azureml_main <- function (dataframe1 , dataframe2 ){
134
+ print(" R script run." )
133
135
134
- # If a zip file is connected to the third input port, it is
135
- # unzipped under "./Script Bundle". This directory is added
136
- # to sys.path.
136
+ # If a zip file is connected to the third input port, it is
137
+ # unzipped under "./Script Bundle". This directory is added
138
+ # to sys.path.
137
139
138
- # Return datasets as a Named List
139
- return (list (dataset1 = dataframe1 , dataset2 = dataframe2 ))
140
- }
141
- ```
140
+ # Return datasets as a Named List
141
+ return (list (dataset1 = dataframe1 , dataset2 = dataframe2 ))
142
+ }
143
+ ```
142
144
143
145
* The script must contain a function named `azureml_main` , which is the entry point for this module.
144
146
0 commit comments