diff --git a/404.html b/404.html index ef5e8d6..79aea24 100644 --- a/404.html +++ b/404.html @@ -1,89 +1,41 @@ - - - - + + + + - Page not found (404) • BiocParallel.FutureParam - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + - - -
-
- - +
+ + + + + + - -
+
+
-
+ - - - - - - - + - - diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index 3b19f8f..9c29f16 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -1,89 +1,18 @@ - - - - - - - -Contributing to the ‘BiocParallel.FutureParam’ package • BiocParallel.FutureParam - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Contributing to the ‘BiocParallel.FutureParam’ package • BiocParallel.FutureParam - - - - - + - - -
-
- - -
-
+
-
+
-

This Git repository uses the Git Flow branching model (the git flow extension is useful for this). The develop branch contains the latest contributions and other code that will appear in the next release, and the master branch contains the code of the latest release.

-

Contributing to this package is easy. Just send a pull request. When you send your PR, make sure develop is the destination branch on the BiocParallel.FutureParam repository. Your PR should pass R CMD check --as-cran, which will also be checked by GitHub Actions and AppVeyor CI when the PR is submitted.

-

We abide to the Code of Conduct of Contributor Covenant.

+

This Git repository uses the Git Flow branching model (the git flow extension is useful for this). The develop branch contains the latest contributions and other code that will appear in the next release, and the master branch contains the code of the latest release.

+

Contributing to this package is easy. Just send a pull request. When you send your PR, make sure develop is the destination branch on the BiocParallel.FutureParam repository. Your PR should pass R CMD check --as-cran, which will also be checked by GitHub Actions and AppVeyor CI when the PR is submitted.

+

We abide to the Code of Conduct of Contributor Covenant.

+
-
+ - - - - - - - - - + diff --git a/OVERVIEW.html b/OVERVIEW.html index bc03c36..81b6147 100644 --- a/OVERVIEW.html +++ b/OVERVIEW.html @@ -1,89 +1,18 @@ - - - - - - - -NA • BiocParallel.FutureParam - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -NA • BiocParallel.FutureParam - - - - - - + - -
-
- - -
-
+
-

<%

-
-

-Reuse the future vignette

-

md <- R.rsp::rstring(file=“vignettes/FutureParam.md.rsp”, postprocess=FALSE)

+

WARNING: This package is experimental and a proof of concept what could be done with BiocParallel and the future framework.

+

<% ## Reuse the future vignette md <- R.rsp::rstring(file=“vignettes/FutureParam.md.rsp”, postprocess=FALSE)

+
+

Drop the header

+

md <- unlist(strsplit(md, split=“”, fixed=TRUE)) md <- md[-seq_len(grep(“^##”, md)[1]-1)]

-
-

-Drop the header

-

md <- unlist(strsplit(md, split=“\n”, fixed=TRUE)) md <- md[-seq_len(grep(“^##”, md)[1]-1)]

-
-
-

-Output

-

cat(md, sep=“\n”) %>

+
+

Output

+

cat(md, sep=“”) %>

+
-
+ - - - - - - - - - + diff --git a/articles/FutureParam.html b/articles/FutureParam.html index 8dd6844..d31cca9 100644 --- a/articles/FutureParam.html +++ b/articles/FutureParam.html @@ -12,7 +12,7 @@ - + @@ -20,7 +20,6 @@ -
@@ -160,44 +161,67 @@
- +
-
-

-Introduction

-

The future package provides a generic API for using futures in R. A future is a simple yet powerful mechanism to evaluate an R expression and retrieve its value at some point in time. Futures can be resolved in many different ways depending on which strategy is used. There are various types of synchronous and asynchronous futures to choose from in the future package. Additional futures are implemented in other packages. For instance, the future.batchtools package provides futures for any type of backend that the batchtools package supports. For an introduction to futures in R, please consult the vignettes of the future package.

-

The BiocParallel.FutureParam package provides FutureParam, a BiocParallelParam class, for the BiocParallel package that works with any type of future. The BiocParallel.FutureParam package is cross platform just as the future package.

-

Below is an example showing how to use FutureParam with multicore futures. A multicore future will be evaluated in parallel using forked workers, which is not supported on MS Windows when it will fall back to sequential processing.

-
-library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(multicore)
-
-mu <- 1.0
-sigma <- 2.0
-x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
-  rnorm(i, mean = mu, sd = sigma)
-})
+
+

Introduction +

+

The future +package provides a generic API for using futures in R. A future is a +simple yet powerful mechanism to evaluate an R expression and retrieve +its value at some point in time. Futures can be resolved in many +different ways depending on which strategy is used. There are various +types of synchronous and asynchronous futures to choose from in the future package. +Additional futures are implemented in other packages. For instance, the +future.batchtools +package provides futures for any type of backend that the batchtools +package supports. For an introduction to futures in R, please consult +the vignettes of the future package.

+

The BiocParallel.FutureParam +package provides FutureParam, a BiocParallelParam class, for the BiocParallel +package that works with any type of future. The +BiocParallel.FutureParam package is cross platform just as the future +package.

+

Below is an example showing how to use FutureParam with +multicore futures. A multicore future will be evaluated in +parallel using forked workers, which is not supported on MS Windows when +it will fall back to sequential processing.

+
+library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multicore)
+
+mu <- 1.0
+sigma <- 2.0
+x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
+  rnorm(i, mean = mu, sd = sigma)
+})
-
-

-FutureParam replaces existing BiocParallelParam classes

-

Due to the generic nature of futures, the FutureParam class provides the same functionality as many of the existing BiocParallelParam classes, e.g. SerialParam, SnowParam, MulticoreParam, BatchtoolsParam and DoparParam. In addition, it provides supports for additional backends that are not yet implemented in BiocParallel, e.g. callr and batchtools.

- +
+

FutureParam replaces existing BiocParallelParam classes +

+

Due to the generic nature of futures, the FutureParam class provides +the same functionality as many of the existing BiocParallelParam +classes, e.g. SerialParam, SnowParam, MulticoreParam, BatchtoolsParam +and DoparParam. In addition, it provides supports for additional +backends that are not yet implemented in BiocParallel, +e.g. callr and batchtools.

+
@@ -300,60 +312,68 @@

N/A

BiocParallel usage @@ -208,91 +232,79 @@

-
library("BiocParallel")
-register(SerialParam())
-
-
+
library("BiocParallel")
+register(SerialParam())
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(sequential)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(sequential)
-
library("BiocParallel")
-register(MulticoreParam())
-
-
+
library("BiocParallel")
+register(MulticoreParam())
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(multicore)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multicore)
-
library("BiocParallel")
-register(SnowParam(2, type = "SOCK"))
-
-
+
library("BiocParallel")
+register(SnowParam(2, type = "SOCK"))
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(multisession, workers = 2)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multisession, workers = 2)
-
library("BiocParallel")
-cl <- parallel::makeCluster(2, type = "SOCK")
-register(as(cl, "SnowParam"))
-
-
+
library("BiocParallel")
+cl <- parallel::makeCluster(2, type = "SOCK")
+register(as(cl, "SnowParam"))
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-cl <- parallel::makeCluster(2, type = "SOCK")
-plan(cluster, workers = cl)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+cl <- parallel::makeCluster(2, type = "SOCK")
+plan(cluster, workers = cl)
-
library("BiocParallel")
-register(SnowParam(4, type = "MPI"))
-
-
-
+
library("BiocParallel")
+register(SnowParam(4, type = "MPI"))
+
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-cl <- parallel::makeCluster(4, type = "MPI")
-plan(cluster, workers = cl)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+cl <- parallel::makeCluster(4, type = "MPI")
+plan(cluster, workers = cl)
-
library("BiocParallel")
-register(BatchtoolsParam(cluster="sge",
-                         template="~/sge.tmpl"))
-
+
library("BiocParallel")
+register(BatchtoolsParam(cluster="sge",
+                         template="~/sge.tmpl"))
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(future.batchtools::batchtools_sge,
-     template = "~/sge.tmpl")
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(future.batchtools::batchtools_sge,
+     template = "~/sge.tmpl")
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(future.callr::callr)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(future.callr::callr)
-
-

-Something not working?

-

Please note that this package, BiocParallel.FutureParam, is in an experimental stage and does not get as much real-world use as other BiocParallel backends. Thus, if you run into a problem when using this package, it could very well be a bug. However, before you report the problem, please try with the doFuture, registerDoFuture(), and the DoparParam() backend of BiocParallel, e.g.

-
-library("BiocParallel")
-library("doFuture")
-register(DoparParam()) ## Tell BiocParallel to use a foreach backend
-registerDoFuture()     ## Tell foreach to use a future backend
-plan(multicore)        ## Tell future to use the multicore backend
-
-mu <- 1.0
-sigma <- 2.0
-x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
-  rnorm(i, mean = mu, sd = sigma)
-})
-

If that works, but not with register(FutureParam()), then it's a bug in the BiocParallel.FutureParam package. Please report this at https://github.com/HenrikBengtsson/BiocParallel.FutureParam/issues.

+
+

Something not working? +

+

Please note that this package, +BiocParallel.FutureParam, is in an experimental stage +and does not get as much real-world use as other +BiocParallel backends. Thus, if you run into a problem +when using this package, it could very well be a bug. However, before +you report the problem, please try with the doFuture, +registerDoFuture(), and the DoparParam() +backend of BiocParallel, e.g.

+
+library("BiocParallel")
+library("doFuture")
+register(DoparParam()) ## Tell BiocParallel to use a foreach backend
+registerDoFuture()     ## Tell foreach to use a future backend
+plan(multicore)        ## Tell future to use the multicore backend
+
+mu <- 1.0
+sigma <- 2.0
+x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
+  rnorm(i, mean = mu, sd = sigma)
+})
+

If that works, but not with register(FutureParam()), +then it’s a bug in the BiocParallel.FutureParam +package. Please report this at https://github.com/HenrikBengtsson/BiocParallel.FutureParam/issues.

+
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Articles • BiocParallel.FutureParam - - - - - + - - -
-
- - -
-
+
+
A BiocParallelParam class using Futures
+
+
-
+ - - - - - - - - - + diff --git a/authors.html b/authors.html index ffa352e..f28ec3b 100644 --- a/authors.html +++ b/authors.html @@ -1,89 +1,18 @@ - - - - - - - -Authors • BiocParallel.FutureParam - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Authors and Citation • BiocParallel.FutureParam - - - - - - + - - -
-
-
-
+
- @@ -234,24 +173,21 @@

Authors

-
- - - - - - - - - + diff --git a/index.html b/index.html index b0d8e01..d4507bf 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + @@ -33,6 +33,8 @@ + + @@ -160,128 +162,121 @@
- +
-
- -
-

-Introduction

-

The future package provides a generic API for using futures in R. A future is a simple yet powerful mechanism to evaluate an R expression and retrieve its value at some point in time. Futures can be resolved in many different ways depending on which strategy is used. There are various types of synchronous and asynchronous futures to choose from in the future package. Additional futures are implemented in other packages. For instance, the future.batchtools package provides futures for any type of backend that the batchtools package supports. For an introduction to futures in R, please consult the vignettes of the future package.

-

The BiocParallel.FutureParam package provides FutureParam, a BiocParallelParam class, for the BiocParallel package that works with any type of future. The BiocParallel.FutureParam package is cross platform just as the future package.

+
+ +

WARNING: This package is experimental and a proof of concept what could be done with BiocParallel and the future framework.

+
+

Introduction +

+

The future package provides a generic API for using futures in R. A future is a simple yet powerful mechanism to evaluate an R expression and retrieve its value at some point in time. Futures can be resolved in many different ways depending on which strategy is used. There are various types of synchronous and asynchronous futures to choose from in the future package. Additional futures are implemented in other packages. For instance, the future.batchtools package provides futures for any type of backend that the batchtools package supports. For an introduction to futures in R, please consult the vignettes of the future package.

+

The BiocParallel.FutureParam package provides FutureParam, a BiocParallelParam class, for the BiocParallel package that works with any type of future. The BiocParallel.FutureParam package is cross platform just as the future package.

Below is an example showing how to use FutureParam with multicore futures. A multicore future will be evaluated in parallel using forked workers, which is not supported on MS Windows when it will fall back to sequential processing.

-
-library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(multicore)
-
-mu <- 1.0
-sigma <- 2.0
-x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
-  rnorm(i, mean = mu, sd = sigma)
-})
+
+library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multicore)
+
+mu <- 1.0
+sigma <- 2.0
+x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
+  rnorm(i, mean = mu, sd = sigma)
+})
-
-

-FutureParam replaces existing BiocParallelParam classes

-

Due to the generic nature of futures, the FutureParam class provides the same functionality as many of the existing BiocParallelParam classes, e.g. SerialParam, SnowParam, MulticoreParam, BatchtoolsParam and DoparParam. In addition, it provides supports for additional backends that are not yet implemented in BiocParallel, e.g. callr and batchtools.

- +
+

FutureParam replaces existing BiocParallelParam classes +

+

Due to the generic nature of futures, the FutureParam class provides the same functionality as many of the existing BiocParallelParam classes, e.g. SerialParam, SnowParam, MulticoreParam, BatchtoolsParam and DoparParam. In addition, it provides supports for additional backends that are not yet implemented in BiocParallel, e.g. callr and batchtools.

+
- - + + @@ -289,44 +284,43 @@

N/A

BiocParallel usageBiocParallel.FutureParam alternative +BiocParallel usage + +BiocParallel.FutureParam alternative +
-
library("BiocParallel")
-register(SerialParam())
-
-
+
library("BiocParallel")
+register(SerialParam())
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(sequential)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(sequential)
-
library("BiocParallel")
-register(MulticoreParam())
-
-
+
library("BiocParallel")
+register(MulticoreParam())
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(multicore)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multicore)
-
library("BiocParallel")
-register(SnowParam(2, type = "SOCK"))
-
-
+
library("BiocParallel")
+register(SnowParam(2, type = "SOCK"))
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(multisession, workers = 2)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multisession, workers = 2)
-
library("BiocParallel")
-cl <- parallel::makeCluster(2, type = "SOCK")
-register(as(cl, "SnowParam"))
-
-
+
library("BiocParallel")
+cl <- parallel::makeCluster(2, type = "SOCK")
+register(as(cl, "SnowParam"))
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-cl <- parallel::makeCluster(2, type = "SOCK")
-plan(cluster, workers = cl)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+cl <- parallel::makeCluster(2, type = "SOCK")
+plan(cluster, workers = cl)
-
library("BiocParallel")
-register(SnowParam(4, type = "MPI"))
-
-
-
+
library("BiocParallel")
+register(SnowParam(4, type = "MPI"))
+
+
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-cl <- parallel::makeCluster(4, type = "MPI")
-plan(cluster, workers = cl)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+cl <- parallel::makeCluster(4, type = "MPI")
+plan(cluster, workers = cl)
-
library("BiocParallel")
-register(BatchtoolsParam(cluster="sge",
-                         template="~/sge.tmpl"))
-
+
library("BiocParallel")
+register(BatchtoolsParam(cluster="sge",
+                         template="~/sge.tmpl"))
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(future.batchtools::batchtools_sge,
-     template = "~/sge.tmpl")
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(future.batchtools::batchtools_sge,
+     template = "~/sge.tmpl")
-
library("BiocParallel.FutureParam")
-register(FutureParam())
-plan(future.callr::callr)
-
+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(future.callr::callr)
-
-

-Something not working?

-

Please note that this package, BiocParallel.FutureParam, is in an experimental stage and does not get as much real-world use as other BiocParallel backends. Thus, if you run into a problem when using this package, it could very well be a bug. However, before you report the problem, please try with the doFuture, registerDoFuture(), and the DoparParam() backend of BiocParallel, e.g.

-
-library("BiocParallel")
-library("doFuture")
-register(DoparParam()) ## Tell BiocParallel to use a foreach backend
-registerDoFuture()     ## Tell foreach to use a future backend
-plan(multicore)        ## Tell future to use the multicore backend
-
-mu <- 1.0
-sigma <- 2.0
-x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
-  rnorm(i, mean = mu, sd = sigma)
-})
-

If that works, but not with register(FutureParam()), then it’s a bug in the BiocParallel.FutureParam package. Please report this at https://github.com/HenrikBengtsson/BiocParallel.FutureParam/issues.

+
+

Something not working? +

+

Please note that this package, BiocParallel.FutureParam, is in an experimental stage and does not get as much real-world use as other BiocParallel backends. Thus, if you run into a problem when using this package, it could very well be a bug. However, before you report the problem, please try with the doFuture, registerDoFuture(), and the DoparParam() backend of BiocParallel, e.g.

+
+library("BiocParallel")
+library("doFuture")
+register(DoparParam()) ## Tell BiocParallel to use a foreach backend
+registerDoFuture()     ## Tell foreach to use a future backend
+plan(multicore)        ## Tell future to use the multicore backend
+
+mu <- 1.0
+sigma <- 2.0
+x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
+  rnorm(i, mean = mu, sd = sigma)
+})
+

If that works, but not with register(FutureParam()), then it’s a bug in the BiocParallel.FutureParam package. Please report this at https://github.com/HenrikBengtsson/BiocParallel.FutureParam/issues.

-
-

-Installation

-

R package BiocParallel.FutureParam is only available via GitHub and can be installed in R as:

-
-remotes::install_github("HenrikBengtsson/BiocParallel.FutureParam", ref="master")
-
-

-Pre-release version

+
+

Installation +

+

R package BiocParallel.FutureParam is only available via GitHub and can be installed in R as:

+
+remotes::install_github("HenrikBengtsson/BiocParallel.FutureParam", ref="master")
+
+

Pre-release version +

To install the pre-release version that is available in Git branch develop on GitHub, use:

-
-remotes::install_github("HenrikBengtsson/BiocParallel.FutureParam", ref="develop")
+
+remotes::install_github("HenrikBengtsson/BiocParallel.FutureParam", ref="develop")

This will install the package from source.

@@ -336,69 +330,77 @@

- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Changelog • BiocParallel.FutureParam - - - - - - + - -
-
- - -
-
+
-
-

-BiocParallel.FutureParam 0.2.1-9000

+
+
-
-

-BiocParallel.FutureParam 0.2.1

-
-

-Bug Fixes

-
    -
  • bplapply() and bpiterate() for FutureParam now uses value() instead of values(), which is deprecated in future (>= 1.20.0).

  • +
    + +
    +

    Bug Fixes

    +
    • bplapply() and bpiterate() for FutureParam now uses value() instead of values(), which is deprecated in future (>= 1.20.0).

    • Using argument ‘result = TRUE’ in internal resolve() calls instead of ‘value = TRUE’, which is deprecated in future (>= 1.15.0).

    • -
    +
+
+ +
+

Bug Fixes

+
  • FutureParam did not work in Bioconductor (>= 3.8) due to updates in the BiocParallel package.
  • +
+
+

Deprecated and Defunct

+
  • Argument ‘catch.errors’ for FutureParam is now defunct and hidden.
  • +
-
-

-BiocParallel.FutureParam 0.2.0

-
-

-Bug Fixes

-
    -
  • FutureParam did not work in Bioconductor (>= 3.8) due to updates in the BiocParallel package.
  • -
-
-
-

-Deprecated and Defunct

-
    -
  • Argument ‘catch.errors’ for FutureParam is now defunct and hidden.
  • -
-
-
-
-

-BiocParallel.FutureParam 0.1.1

-
-

-Software Quality

-
    -
  • TESTS: Now testing FutureParam with all built-in strategies of the future package as well as the ‘local’ and ‘interactive’ strategies of future.batchtools and future.BatchJobs. In order to test with the latter two, those packages need to be installed.
  • -
-
-
-
-

-BiocParallel.FutureParam 0.1.0

-
-

-New Features

-
    -
  • Package created.
  • -
+
+ +
+

Software Quality

+
  • TESTS: Now testing FutureParam with all built-in strategies of the future package as well as the ‘local’ and ‘interactive’ strategies of future.batchtools and future.BatchJobs. In order to test with the latter two, those packages need to be installed.
  • +
+
+ +
+

New Features

+
  • Package created.
  • +
+
-
+ - - - - - - - - - + diff --git a/pkgdown.css b/pkgdown.css index 1273238..80ea5b8 100644 --- a/pkgdown.css +++ b/pkgdown.css @@ -56,8 +56,10 @@ img.icon { float: right; } -img { +/* Ensure in-page images don't run outside their container */ +.contents img { max-width: 100%; + height: auto; } /* Fix bug in bootstrap (only seen in firefox) */ @@ -78,11 +80,10 @@ dd { /* Section anchors ---------------------------------*/ a.anchor { - margin-left: -30px; - display:inline-block; - width: 30px; - height: 30px; - visibility: hidden; + display: none; + margin-left: 5px; + width: 20px; + height: 20px; background-image: url(./link.svg); background-repeat: no-repeat; @@ -90,17 +91,15 @@ a.anchor { background-position: center center; } -.hasAnchor:hover a.anchor { - visibility: visible; -} - -@media (max-width: 767px) { - .hasAnchor:hover a.anchor { - visibility: hidden; - } +h1:hover .anchor, +h2:hover .anchor, +h3:hover .anchor, +h4:hover .anchor, +h5:hover .anchor, +h6:hover .anchor { + display: inline-block; } - /* Fixes for fixed navbar --------------------------*/ .contents h1, .contents h2, .contents h3, .contents h4 { @@ -264,31 +263,26 @@ table { /* Syntax highlighting ---------------------------------------------------- */ -pre { - word-wrap: normal; - word-break: normal; - border: 1px solid #eee; -} - -pre, code { +pre, code, pre code { background-color: #f8f8f8; color: #333; } +pre, pre code { + white-space: pre-wrap; + word-break: break-all; + overflow-wrap: break-word; +} -pre code { - overflow: auto; - word-wrap: normal; - white-space: pre; +pre { + border: 1px solid #eee; } -pre .img { +pre .img, pre .r-plt { margin: 5px 0; } -pre .img img { +pre .img img, pre .r-plt img { background-color: #fff; - display: block; - height: auto; } code a, pre a { @@ -305,9 +299,8 @@ a.sourceLine:hover { .kw {color: #264D66;} /* keyword */ .co {color: #888888;} /* comment */ -.message { color: black; font-weight: bolder;} -.error { color: orange; font-weight: bolder;} -.warning { color: #6A0366; font-weight: bolder;} +.error {font-weight: bolder;} +.warning {font-weight: bolder;} /* Clipboard --------------------------*/ @@ -365,3 +358,27 @@ mark { content: ""; } } + +/* Section anchors --------------------------------- + Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71 +*/ + +div.csl-bib-body { } +div.csl-entry { + clear: both; +} +.hanging-indent div.csl-entry { + margin-left:2em; + text-indent:-2em; +} +div.csl-left-margin { + min-width:2em; + float:left; +} +div.csl-right-inline { + margin-left:2em; + padding-left:1em; +} +div.csl-indent { + margin-left: 2em; +} diff --git a/pkgdown.js b/pkgdown.js index 7e7048f..6f0eee4 100644 --- a/pkgdown.js +++ b/pkgdown.js @@ -80,7 +80,7 @@ $(document).ready(function() { var copyButton = ""; - $(".examples, div.sourceCode").addClass("hasCopyButton"); + $("div.sourceCode").addClass("hasCopyButton"); // Insert copy buttons: $(copyButton).prependTo(".hasCopyButton"); @@ -91,7 +91,7 @@ // Initialize clipboard: var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', { text: function(trigger) { - return trigger.parentNode.textContent; + return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, ""); } }); diff --git a/pkgdown.yml b/pkgdown.yml index e17debb..091a848 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -1,10 +1,9 @@ -pandoc: 1.19.2.4 -pkgdown: 1.6.1 +pandoc: '3.4' +pkgdown: 2.1.1 pkgdown_sha: ~ articles: FutureParam: FutureParam.html -last_built: 2021-08-17T10:04Z +last_built: 2024-10-27T03:49Z urls: reference: https://BiocParallel.FutureParam.futureverse.org/reference article: https://BiocParallel.FutureParam.futureverse.org/articles - diff --git a/reference/BiocParallel.FutureParam-package.html b/reference/BiocParallel.FutureParam-package.html new file mode 100644 index 0000000..068d2f0 --- /dev/null +++ b/reference/BiocParallel.FutureParam-package.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/reference/BiocParallel.FutureParam.html b/reference/BiocParallel.FutureParam.html index d5138c2..03cd67e 100644 --- a/reference/BiocParallel.FutureParam.html +++ b/reference/BiocParallel.FutureParam.html @@ -1,95 +1,23 @@ - - - - - - - -BiocParallel.FutureParam: A BiocParallelParam class using Futures — BiocParallel.FutureParam • BiocParallel.FutureParam - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -BiocParallel.FutureParam: A BiocParallelParam class using Futures — BiocParallel.FutureParam • BiocParallel.FutureParam - - - - - - - - - - - - - - + - - -
-
- - -
-
+
-

The BiocParallel.FutureParam package provides FutureParam, -a BiocParallel::BiocParallelParam class, for the +

The BiocParallel.FutureParam package provides FutureParam, +a BiocParallel::BiocParallelParam class, for the BiocParallel package that works with any type of future. (that is supported by Future API of the future package) can be used for asynchronous (parallel/distributed) or synchronous @@ -235,9 +151,8 @@

BiocParallel.FutureParam: A BiocParallelParam class using Futures

- -

Details

- +
+

Details

Futures themselves are provided by the future package, e.g. multicore, multisession, ad hoc cluster, and MPI cluster futures. Additional futures are provided by other packages. @@ -246,62 +161,66 @@

Details asynchronous processing to anything that the batchtools package supports.

To use futures with the BiocParallel package, load -BiocParallel.FutureParam, call register(FutureParam()), +BiocParallel.FutureParam, call register(FutureParam()), select the type of future you wish to use via future:plan().

- -

Examples

-
library("BiocParallel.FutureParam") -register(FutureParam()) -plan(multisession) - -mu <- 1.0 -sigma <- 2.0 -x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) { - rnorm(i, mean = mu, sd = sigma) -}) -print(x) -
#> [[1]] -#> [1] 2.483216 -#> -#> [[2]] -#> [1] -1.729922 2.200157 -#> -#> [[3]] -#> [1] 1.997783 1.653568 3.274135 -#>
-## WORKAROUND: For some reason, 'R CMD check' on Windows will give an -## error when running this example with plan(multisession), unless we -## reset the future plan at the end. -plan(sequential) -
+
+ +
+

Author

+

Maintainer: Henrik Bengtsson henrikb@braju.com [copyright holder]

+

Other contributors:

  • Ryan Thompson [contributor]

  • +
+ +
+

Examples

+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multisession)
+
+mu <- 1.0
+sigma <- 2.0
+x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
+  rnorm(i, mean = mu, sd = sigma)
+})
+#> Error in .composeTry(FUN, bplog(BPPARAM), bpstopOnError(BPPARAM), stop.immediate = bpstopOnError(BPPARAM),     timeout = bptimeout(BPPARAM)): unused arguments (stop.immediate = bpstopOnError(BPPARAM), timeout = bptimeout(BPPARAM))
+print(x)
+#> Error: object 'x' not found
+
+## WORKAROUND: For some reason, 'R CMD check' on Windows will give an
+## error when running this example with plan(multisession), unless we
+## reset the future plan at the end.
+plan(sequential)
+
+
+
-
- - - - - - - - - + diff --git a/reference/FutureParam.html b/reference/FutureParam.html index 76ea776..968b793 100644 --- a/reference/FutureParam.html +++ b/reference/FutureParam.html @@ -1,90 +1,18 @@ - - - - - - - -Creates a FutureParam object — FutureParam • BiocParallel.FutureParam - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Creates a FutureParam object — FutureParam • BiocParallel.FutureParam - - - - - - + - -
-
- - -
-
+
@@ -224,74 +140,67 @@

Creates a FutureParam object

Creates a FutureParam object

-
FutureParam(...)
+
+
FutureParam(...)
+
-

Arguments

- - - - - - -
...

Arguments passed to the initialization method of -BiocParallel::BiocParallelParam.

+
+

Arguments

-

Value

-

A BiocParallel::BiocParallelParam object of class FutureParam.

+
...
+

Arguments passed to the initialization method of +BiocParallel::BiocParallelParam.

-

Examples

-
library("BiocParallel.FutureParam") -register(FutureParam()) -plan(multisession) +
+
+

Value

+

A BiocParallel::BiocParallelParam object of class FutureParam.

+
-mu <- 1.0 -sigma <- 2.0 -x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) { - rnorm(i, mean = mu, sd = sigma) -}) -print(x) -
#> [[1]] -#> [1] 2.501308 -#> -#> [[2]] -#> [1] 3.1072927 0.3009823 -#> -#> [[3]] -#> [1] 2.2961592 3.0362081 0.3013251 -#>
-## WORKAROUND: For some reason, 'R CMD check' on Windows will give an -## error when running this example with plan(multisession), unless we -## reset the future plan at the end. -plan(sequential) -
+
+

Examples

+
library("BiocParallel.FutureParam")
+register(FutureParam())
+plan(multisession)
+
+mu <- 1.0
+sigma <- 2.0
+x <- bplapply(1:3, mu = mu, sigma = sigma, function(i, mu, sigma) {
+  rnorm(i, mean = mu, sd = sigma)
+})
+#> Error in .composeTry(FUN, bplog(BPPARAM), bpstopOnError(BPPARAM), stop.immediate = bpstopOnError(BPPARAM),     timeout = bptimeout(BPPARAM)): unused arguments (stop.immediate = bpstopOnError(BPPARAM), timeout = bptimeout(BPPARAM))
+print(x)
+#> Error: object 'x' not found
+
+## WORKAROUND: For some reason, 'R CMD check' on Windows will give an
+## error when running this example with plan(multisession), unless we
+## reset the future plan at the end.
+plan(sequential)
+
+
+
-
+ - - - - - - - - - + diff --git a/reference/Rplot001.png b/reference/Rplot001.png deleted file mode 100644 index 17a3580..0000000 Binary files a/reference/Rplot001.png and /dev/null differ diff --git a/reference/index.html b/reference/index.html index 27aa0c8..14cae58 100644 --- a/reference/index.html +++ b/reference/index.html @@ -1,89 +1,18 @@ - - - - - - - -Function reference • BiocParallel.FutureParam - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Package index • BiocParallel.FutureParam - - - - - - + - -
-
- - -
-
+
- - - - - - - - - - -
-

All functions

+ - - - - - - - - - - - - - - -
+

All functions

-

BiocParallel.FutureParam

+
+

BiocParallel.FutureParam-package BiocParallel.FutureParam

BiocParallel.FutureParam: A BiocParallelParam class using Futures

+

FutureParam()

Creates a FutureParam object

- +
+
-
+ - - - - - - - - - + diff --git a/sitemap.xml b/sitemap.xml index 350b396..9904882 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,15 +1,14 @@ - - - - https://BiocParallel.FutureParam.futureverse.org/index.html - - - https://BiocParallel.FutureParam.futureverse.org/reference/BiocParallel.FutureParam.html - - - https://BiocParallel.FutureParam.futureverse.org/reference/FutureParam.html - - - https://BiocParallel.FutureParam.futureverse.org/articles/FutureParam.html - + +https://BiocParallel.FutureParam.futureverse.org/404.html +https://BiocParallel.FutureParam.futureverse.org/CONTRIBUTING.html +https://BiocParallel.FutureParam.futureverse.org/OVERVIEW.html +https://BiocParallel.FutureParam.futureverse.org/articles/FutureParam.html +https://BiocParallel.FutureParam.futureverse.org/articles/index.html +https://BiocParallel.FutureParam.futureverse.org/authors.html +https://BiocParallel.FutureParam.futureverse.org/index.html +https://BiocParallel.FutureParam.futureverse.org/news/index.html +https://BiocParallel.FutureParam.futureverse.org/reference/BiocParallel.FutureParam.html +https://BiocParallel.FutureParam.futureverse.org/reference/FutureParam.html +https://BiocParallel.FutureParam.futureverse.org/reference/index.html +