Created
May 21, 2015 14:45
-
-
Save lcolladotor/9ac957c6cad1c07f4ea4 to your computer and use it in GitHub Desktop.
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
> library(BiocParallel) | |
> library(snow) | |
> cl <- makeCluster(2, type = 'SOCK') | |
Loading required package: colorout | |
Loading required package: colorout | |
> y <- clusterApply(cl, 1:2, print) | |
> cl <- makeCluster(2, type = 'SOCK', outfile = NULL) | |
Loading required package: colorout | |
starting worker for localhost:11380 | |
Loading required package: colorout | |
starting worker for localhost:11380 | |
> y <- clusterApply(cl, 1:2, print) | |
Type: EXEC | |
Type: EXEC | |
[1] 1 | |
[1] 2 | |
> x <- bplapply(1:2, print, BPPARAM = SerialParam()) | |
[1] 1 | |
[1] 2 | |
> x <- bplapply(1:2, print, BPPARAM = SnowParam(workers = 1)) | |
Loading required package: colorout | |
> x <- bplapply(1:2, print, BPPARAM = SnowParam(workers = 1, outfile = NULL)) | |
Error in bplapply(1:2, print, BPPARAM = SnowParam(workers = 1, outfile = NULL)) : | |
error in evaluating the argument 'BPPARAM' in selecting a method for function 'bplapply': Error in envRefSetField(.Object, field, classDef, selfEnv, elements[[field]]) : | |
‘outfile’ is not a field in class “SnowParam” | |
> x <- bplapply(1:2, print, BPPARAM = SnowParam(workers = 1, .clusterargs=list(outfile = NULL))) | |
Loading required package: colorout | |
Warning messages: | |
1: closing unused connection 4 (<-localhost:11380) | |
2: closing unused connection 3 (<-localhost:11380) | |
> devtools::session_info() | |
Session info ------------------------------------------------------------------- | |
setting value | |
version R version 3.2.0 Patched (2015-05-18 r68382) | |
system x86_64, darwin10.8.0 | |
ui X11 | |
language (EN) | |
collate en_US.UTF-8 | |
tz America/Detroit | |
Packages ----------------------------------------------------------------------- | |
package * version date source | |
BiocParallel * 1.3.12 2015-05-19 Bioconductor | |
bitops 1.0-6 2013-08-17 CRAN (R 3.2.0) | |
colorout * 1.0-2 2015-05-19 local | |
devtools 1.8.0 2015-05-09 CRAN (R 3.2.0) | |
digest 0.6.8 2014-12-31 CRAN (R 3.2.0) | |
futile.logger 1.4.1 2015-04-20 CRAN (R 3.2.0) | |
futile.options 1.0.0 2010-04-06 CRAN (R 3.2.0) | |
git2r 0.10.1 2015-05-07 CRAN (R 3.2.0) | |
lambda.r 1.1.7 2015-03-20 CRAN (R 3.2.0) | |
memoise 0.2.1 2014-04-22 CRAN (R 3.2.0) | |
RCurl 1.95-4.6 2015-04-24 CRAN (R 3.2.0) | |
rversions 1.0.0 2015-04-22 CRAN (R 3.2.0) | |
snow * 0.3-13 2013-09-27 CRAN (R 3.2.0) | |
XML 3.98-1.1 2013-06-20 CRAN (R 3.2.0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment