Learn R Programming

This package is an extension package for the DockerParallel package and defines the common functions for the container class. It cannot be directly used by the end user. The user should use the package doRedisContainer and RedisParamContainer.

doRedisContainer

The package doRedisContainer provides the worker container with foreach doRedis backend.At the time of writing, the package doRedis is not available on CRAN, the latest version can be installed from github remotes::install_github("bwlewis/doRedis"). The worker container can be made by

library(doRedisContainer)
workerContainer <- doRedisWorkerContainer(image = "r-base")
workerContainer
#> Redis container reference object
#>   Image:      dockerparallel/r-base-worker:latest 
#>   backend:    doRedis 
#>   maxWorkers: 4 
#>   Environment variables:

The argument image determines the base image used by the container. The server container can be obtained by

serverContainer <- doRedisServerContainer()
serverContainer
#> Redis container reference object
#>   Image:      dockerparallel/redis-r-server:latest 
#>   maxWorkers: 1 
#>   Environment variables:

RedisParamContainer

The package RedisParamContainer provides the worker container with BiocParallel RedisParam backend. At the time of writing, the package RedisParam is not available on Bioconductor, the latest version can be installed from github remotes::install_github("mtmorgan/RedisParam"). The worker container can be made by

library(RedisParamContainer)
workerContainer <- RedisParamWorkerContainer(image = "r-base")
workerContainer
#> Redis container reference object
#>   Image:      dockerparallel/r-base-worker:latest 
#>   backend:    RedisParam 
#>   maxWorkers: 4 
#>   Environment variables:

The argument image determines the base image used by the container. The server container can be obtained by

serverContainer <- RedisParamServerContainer()
serverContainer
#> Redis container reference object
#>   Image:      dockerparallel/redis-r-server:latest 
#>   maxWorkers: 1 
#>   Environment variables:

Copy Link

Version

Install

install.packages('RedisBaseContainer')

Monthly Downloads

200

Version

1.0.1

License

GPL-3

Maintainer

Jiefei Wang

Last Published

June 8th, 2021

Functions in RedisBaseContainer (1.0.1)

show,RedisContainer-method

Show the Redis container
getServerContainer,RedisContainer-method

Get the Redis server container
configWorkerContainerEnv,RedisContainer-method

Configure the worker container
RedisContainer-commom-parameters

Common RedisContainer parameter
RedisServerContainer

Get the Bioconductor Redis server container
RedisContainer-class

The base redis container
configServerContainerEnv,RedisContainer-method

Configure the server container environment,
getExportedNames,RedisContainer-method

Get the exported object