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
4. To include new Python packages or code, add the zipped file that contains these custom resources on **Script bundle**. The input to **Script bundle**must be a zipped file uploaded to your workspace as a file type dataset. You can upload the dataset on the **Datasets**asset page. You can drag the dataset module from the **My datasets** list in the left module tree on the designer authoring page.
118
+
4. To include new Python packages or code, connect the zipped file that contains these custom resources to **Script bundle**port. Or if your script is larger than 16 KB, use the **Script Bundle**port to avoid errors like *CommandLine exceeds the limit of 16597 characters*.
119
119
120
-
Any file contained in the uploaded zipped archive can be used during pipeline execution. If the archive includes a directory structure, the structure is preserved, but you must prepend a directory called **src** to the path.
120
+
121
+
1. Bundle the script and other custom resources to a zip file.
122
+
1. Upload the zip file as a **File Dataset** to the studio.
123
+
1. Drag the dataset module from the *Datasets* list in the left module pane in the designer authoring page.
124
+
1. Connect the dataset module to the **Script Bundle** port of **Execute R Script** module.
125
+
126
+
Any file contained in the uploaded zipped archive can be used during pipeline execution. If the archive includes a directory structure, the structure is preserved.
127
+
128
+
Following is a script bundle example, which contains a python script file and a txt file:
Copy file name to clipboardExpand all lines: articles/machine-learning/algorithm-module-reference/execute-r-script.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.topic: reference
9
9
10
10
author: likebupt
11
11
ms.author: keli19
12
-
ms.date: 07/27/2020
12
+
ms.date: 10/21/2020
13
13
---
14
14
15
15
# Execute R Script module
@@ -190,11 +190,11 @@ Datasets stored in the designer are automatically converted to an R data frame w
190
190
> [!NOTE]
191
191
> Existing R code might need minor changes to run in a designer pipeline. For example, input data that you provide in CSV format should be explicitly converted to a dataset before you can use it in your code. Data and column types used in the R language also differ in some ways from the data and column types used in the designer.
192
192
193
-
If your script is larger than 16 KB, use the **Script Bundle** port to avoid errors like *CommandLine exceeds the limit of 16597 characters*.
193
+
1. If your script is larger than 16 KB, use the **Script Bundle** port to avoid errors like *CommandLine exceeds the limit of 16597 characters*.
194
194
195
195
1. Bundle the script and other custom resources to a zip file.
196
196
1. Upload the zip file as a **File Dataset** to the studio.
197
-
1. Drag the dataset module from the *My datasets* list in the left module pane in the designer authoring page.
197
+
1. Drag the dataset module from the *Datasets* list in the left module pane in the designer authoring page.
198
198
1. Connect the dataset module to the **Script Bundle** port of **Execute R Script** module.
199
199
200
200
Following is the sample code to consume the script in the script bundle:
0 commit comments