You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install additional R packages, use the `install.packages()` method. Be sure to specify the CRAN repository. Packages are installed for each **Execute R Script** module, and aren't shared across other **Execute R Script** modules.
43
+
To install additional R packages, use the `install.packages()` method. Packages are installed for each **Execute R Script** module, and aren't shared across other **Execute R Script** modules.
44
+
45
+
> [!NOTE]
46
+
> Please specify the CRAN repository when installing packages such as `install.packages("zoo",repos = "http://cran.us.r-project.org")`
44
47
45
48
This sample shows how to install Zoo:
46
49
```R
47
50
# R version: 3.5.1
48
51
# The script MUST contain a function named azureml_main
49
52
# which is the entry point for this module.
50
53
51
-
# The entry point function can contain up to 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.
52
61
# Param<dataframe1>: a R DataFrame
53
62
# Param<dataframe2>: a R DataFrame
54
63
azureml_main<-function(dataframe1, dataframe2){
@@ -73,7 +82,13 @@ The following example shows how to upload an image file in the **Execute R Scrip
73
82
# The script MUST contain a function named azureml_main
74
83
# which is the entry point for this module.
75
84
76
-
# The entry point function can contain up to 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.
77
92
# Param<dataframe1>: a R DataFrame
78
93
# Param<dataframe2>: a R DataFrame
79
94
azureml_main<-function(dataframe1, dataframe2){
@@ -120,14 +135,26 @@ Datasets stored in the designer are automatically converted to an R data frame w
120
135
121
136
1. In the **R script** text box, type or paste valid R script.
122
137
138
+
> [!NOTE]
139
+
> Please be very careful when writing your script and makes sure there is no syntax error, such as using a un-declared variable or a un-imported module or function. Also pay extra attentions to the pre-installed package list in the end of this document. To use packages that are not listed, please install them in your script such as `install.packages("zoo",repos = "http://cran.us.r-project.org")`
140
+
141
+
> [!NOTE]
142
+
> Functions dependant on X11 library such as "View" are not supported because X11 library is not pre-installed.
143
+
123
144
To help you get started, the **R Script** text box is pre-populated with sample code, which you can edit or replace.
124
145
125
146
```R
126
147
# R version: 3.5.1
127
148
# The script MUST contain a function named azureml_main
128
149
# which is the entry point for this module.
129
150
130
-
# The entry point function can contain up to two input arguments:
151
+
# Please note that functions dependant on X11 library
152
+
# such as "View" are not supported because X11 library
153
+
# is not pre-installed.
154
+
155
+
# The entry point function MUST have two input arguments.
156
+
# If the input port is not connected, the corresponding
157
+
# dataframe argument will be null.
131
158
# Param<dataframe1>: a R DataFrame
132
159
# Param<dataframe2>: a R DataFrame
133
160
azureml_main<-function(dataframe1, dataframe2){
@@ -144,8 +171,8 @@ Datasets stored in the designer are automatically converted to an R data frame w
0 commit comments