Skip to content

Commit 1659802

Browse files
committed
minor doc
1 parent ac0663d commit 1659802

3 files changed

Lines changed: 13 additions & 18 deletions

File tree

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ This package will allow you to send function calls as jobs on a computing
1010
cluster with a minimal interface provided by the `Q` function:
1111

1212
```r
13-
# install the package if you haven't done so yet
13+
# install/load the package if you haven't done so yet
1414
install.packages('clustermq')
15-
16-
# load the library and create a simple function
1715
library(clustermq)
18-
fx = function(x) x * 2
1916

20-
# queue the function call on your scheduler
17+
# queue a function call on your scheduler
18+
fx = function(x) x * 2
2119
Q(fx, x=1:3, n_jobs=1)
2220
# list(2,4,6)
2321
```
@@ -51,8 +49,7 @@ schedulers](https://mschubert.github.io/clustermq/articles/userguide.html#config
5149
* [SLURM](https://mschubert.github.io/clustermq/articles/userguide.html#slurm) - *should work without setup*
5250
* [LSF](https://mschubert.github.io/clustermq/articles/userguide.html#lsf) - *should work without setup*
5351
* [SGE](https://mschubert.github.io/clustermq/articles/userguide.html#sge) - *may require configuration*
54-
* [GCS](https://mschubert.github.io/clustermq/articles/userguide.html#gcs) - *needs* `options(clustermq.scheduler="GCS")`
55-
* [OCS](https://mschubert.github.io/clustermq/articles/userguide.html#ocs) - *needs* `options(clustermq.scheduler="OCS")`
52+
* [GCS](https://mschubert.github.io/clustermq/articles/userguide.html#gcs)/[OCS](https://mschubert.github.io/clustermq/articles/userguide.html#ocs) - *needs* `options(clustermq.scheduler="GCS"/"OCS")`
5653
* [PBS](https://mschubert.github.io/clustermq/articles/userguide.html#pbs)/[Torque](https://mschubert.github.io/clustermq/articles/userguide.html#torque) - *needs* `options(clustermq.scheduler="PBS"/"Torque")`
5754
* via [SSH](https://mschubert.github.io/clustermq/articles/userguide.html#ssh-connector) -
5855
*needs* `options(clustermq.scheduler="ssh", clustermq.ssh.host=<yourhost>)`

vignettes/technicaldocs.Rmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ w$env(...)
135135
136136
while (we have new work to send || jobs pending) {
137137
res = w$recv() # the result of the call, or NULL for a new worker
138-
w$current()$call_ref # matches answer to request, -1 otherwise
139138
# handle result
140139
141140
if (more work)

vignettes/userguide.Rmd

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ the bundled library:
4040
# If your system has `libzmq` installed but you want to enable the worker
4141
# crash monitor, set the environment variable below to use the bundled
4242
# `libzmq` library with the required feature (`-DZMQ_BUILD_DRAFT_API=1`):
43-
44-
# Sys.setenv(CLUSTERMQ_USE_SYSTEM_LIBZMQ=0)
43+
Sys.setenv(CLUSTERMQ_USE_SYSTEM_LIBZMQ=0)
4544
install.packages("clustermq")
4645
```
4746

@@ -50,8 +49,9 @@ Github. Note that this version needs `autoconf`/`automake` and `CMake` for
5049
compilation:
5150

5251
```{r eval=FALSE}
53-
# Sys.setenv(CLUSTERMQ_USE_SYSTEM_LIBZMQ=0)
54-
# install.packages('remotes')
52+
if (!requireNamespace("remotes", quietly=TRUE))
53+
install.packages("remotes")
54+
Sys.setenv(CLUSTERMQ_USE_SYSTEM_LIBZMQ=0)
5555
remotes::install_github("mschubert/clustermq")
5656
# remotes::install_github("mschubert/clustermq@develop") # dev version
5757
```
@@ -82,8 +82,7 @@ To set up a scheduler explicitly, see the following links:
8282
* [SLURM](#slurm) - *should work without setup*
8383
* [LSF](#lsf) - *should work without setup*
8484
* [SGE](#sge) - *may require configuration*
85-
* [GCS](#gcs) - *needs* `options(clustermq.scheduler="GCS")`
86-
* [OCS](#ocs) - *needs* `options(clustermq.scheduler="OCS")`
85+
* [GCS](#gcs)/[OCS](#ocs) - *needs* `options(clustermq.scheduler="GCS"/"OCS")`
8786
* [PBS](#pbs)/[Torque](#torque) - *needs* `options(clustermq.scheduler="PBS"/"Torque")`
8887
* you can suggest another scheduler by [opening an
8988
issue](https://github.com/mschubert/clustermq/issues)
@@ -285,10 +284,10 @@ be available in your active session, while the latter will be available any
285284
time after you restart R.
286285

287286
* `clustermq.scheduler` - One of the supported
288-
[`clustermq` schedulers](#configuration); options are `"LOCAL"`,
289-
`"multiprocess"`, `"multicore"`, `"lsf"`, `"sge"`, `"gcs"`, `"ocs"`, `"slurm"`, `"pbs"`,
290-
`"Torque"`, or `"ssh"` (default is the HPC scheduler found in `$PATH`,
291-
otherwise `"LOCAL"`)
287+
[`clustermq` schedulers](#configuration); options are `"local"`,
288+
`"multiprocess"`, `"multicore"`, `"lsf"`, `"sge"`, `"gcs"`, `"ocs"`,
289+
`"slurm"`, `"pbs"`, `"torque"`, or `"ssh"` (default is the HPC scheduler
290+
found in `$PATH`, otherwise `"local"`)
292291
* `clustermq.host` - The name of the node or device for constructing the
293292
`ZeroMQ` host address (default is `Sys.info()["nodename"]`)
294293
* `clustermq.ports` - A port range used by `clustermq` to initiate connections.

0 commit comments

Comments
 (0)