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

Commit

Permalink
Added package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
brnleehng committed Apr 9, 2017
1 parent 2323c6c commit c6fe680
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions R/helpers.R
Expand Up @@ -59,16 +59,16 @@

poolInfo <- list("poolId" = poolId)

commands <- linuxWrapCommands(c("ls"))
commands <- c("ls")
if(!is.null(packages)){
commands <- paste0(commands, ";", getInstallationCommand(packages))
commands <- c(commands, getInstallationCommand(packages))
}

jobPreparationTask <- list(
commandLine = commands,
commandLine = linuxWrapCommands(commands),
userIdentity = list(
autoUser = list(
scope = "task",
scope = "pool",
elevationLevel = "admin"
)
),
Expand All @@ -94,10 +94,12 @@
commands <- c("export PATH=/anaconda/envs/py35/bin:$PATH",
"sudo env PATH=$PATH pip install --no-dependencies blobxfer")

commands <- paste0(linuxWrapCommands(commands), ";", packages)
if(!is.null(packages)){
commands <- c(commands, packages)
}

startTask <- list(
commandLine = commands,
commandLine = linuxWrapCommands(commands),
userIdentity = list(
autoUser = list(
scope = "pool",
Expand Down

0 comments on commit c6fe680

Please sign in to comment.