Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit a4f4b78

Browse files
committed
update metadata code
1 parent ea0d3e9 commit a4f4b78

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

R/doAzureParallel.R

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -360,18 +360,15 @@ setHttpTraffic <- function(value = FALSE) {
360360
chunkSizeKeyValuePair <-
361361
list(name = "chunkSize", value = as.character(chunkSize))
362362

363-
if (is.null(obj$packages)) {
364-
metadata <-
365-
list(enableCloudCombineKeyValuePair, chunkSizeKeyValuePair)
366-
} else {
363+
metadata <-
364+
list(enableCloudCombineKeyValuePair, chunkSizeKeyValuePair)
365+
366+
if (!is.null(obj$packages)) {
367367
packagesKeyValuePair <-
368368
list(name = "packages",
369369
value = paste(obj$packages, collapse = ";"))
370370

371-
metadata <-
372-
list(enableCloudCombineKeyValuePair,
373-
chunkSizeKeyValuePair,
374-
packagesKeyValuePair)
371+
metadata[[3]] <-packagesKeyValuePair
375372
}
376373

377374
response <- .addJob(

0 commit comments

Comments
 (0)