Skip to content

Commit 25aa28e

Browse files
Update comments in sample code
1 parent 55c8988 commit 25aa28e

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

articles/machine-learning/algorithm-module-reference/execute-r-script.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ This sample shows how to install Zoo:
5151
# The script MUST contain a function named azureml_main
5252
# which is the entry point for this module.
5353

54-
# The entry point function MUST have two input arguments:
54+
# Please note that functions dependant on X11 library
55+
# such as "View" are not supported because X11 library
56+
# is not pre-installed.
57+
58+
# The entry point function MUST have two input arguments.
59+
# If the input port is not connected, the corresponding
60+
# dataframe argument will be null.
5561
# Param<dataframe1>: a R DataFrame
5662
# Param<dataframe2>: a R DataFrame
5763
azureml_main <- function(dataframe1, dataframe2){
@@ -76,7 +82,13 @@ The following example shows how to upload an image file in the **Execute R Scrip
7682
# The script MUST contain a function named azureml_main
7783
# which is the entry point for this module.
7884

79-
# The entry point function MUST have two input arguments:
85+
# Please note that functions dependant on X11 library
86+
# such as "View" are not supported because X11 library
87+
# is not pre-installed.
88+
89+
# The entry point function MUST have two input arguments.
90+
# If the input port is not connected, the corresponding
91+
# dataframe argument will be null.
8092
# Param<dataframe1>: a R DataFrame
8193
# Param<dataframe2>: a R DataFrame
8294
azureml_main <- function(dataframe1, dataframe2){
@@ -133,7 +145,13 @@ Datasets stored in the designer are automatically converted to an R data frame w
133145
# The script MUST contain a function named azureml_main
134146
# which is the entry point for this module.
135147

136-
# The entry point function MUST have two input arguments:
148+
# Please note that functions dependant on X11 library
149+
# such as "View" are not supported because X11 library
150+
# is not pre-installed.
151+
152+
# The entry point function MUST have two input arguments.
153+
# If the input port is not connected, the corresponding
154+
# dataframe argument will be null.
137155
# Param<dataframe1>: a R DataFrame
138156
# Param<dataframe2>: a R DataFrame
139157
azureml_main <- function(dataframe1, dataframe2){
@@ -197,7 +215,14 @@ The following sample shows how to scale and normalize input data:
197215
# R version: 3.5.1
198216
# The script MUST contain a function named azureml_main
199217
# which is the entry point for this module.
200-
# The entry point function must have two input arguments:
218+
219+
# Please note that functions dependant on X11 library
220+
# such as "View" are not supported because X11 library
221+
# is not pre-installed.
222+
223+
# The entry point function MUST have two input arguments.
224+
# If the input port is not connected, the corresponding
225+
# dataframe argument will be null.
201226
# Param<dataframe1>: a R DataFrame
202227
# Param<dataframe2>: a R DataFrame
203228
azureml_main <- function(dataframe1, dataframe2){

0 commit comments

Comments
 (0)