This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bioconductor package install docs for multi-task race condition (#…
…135) * fix bioconductor package install docs for multi-task race condition * fix typos * remove docs on updating an existing cluster's packages from within the foreach loop * support an install_bioconductor.R script * update docs with working sample
- Loading branch information
Showing
7 changed files
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/Rscript | ||
args <- commandArgs(trailingOnly = TRUE) | ||
|
||
status <- tryCatch({ | ||
library(BiocInstaller) | ||
for (package in args) { | ||
if (!require(package, character.only = TRUE)) { | ||
biocLite(pkgs = package) | ||
require(package, character.only = TRUE) | ||
} | ||
} | ||
|
||
0 | ||
}, | ||
error = function(e) { | ||
cat(sprintf( | ||
"Error getting parent environment: %s\n", | ||
conditionMessage(e) | ||
)) | ||
|
||
# Install packages doesn't return a non-exit code. | ||
# Using '1' as the default non-exit code | ||
1 | ||
}) | ||
|
||
quit(save = "yes", | ||
status = status, | ||
runLast = FALSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters