File: as.cluster.Rd

package info (click to toggle)
r-cran-parallelly 1.42.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,216 kB
  • sloc: ansic: 111; sh: 13; makefile: 2
file content (50 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as.cluster.R
\name{as.cluster}
\alias{as.cluster}
\alias{as.cluster.cluster}
\alias{as.cluster.list}
\alias{as.cluster.SOCKnode}
\alias{as.cluster.SOCK0node}
\alias{as.cluster.RichSOCKnode}
\alias{c.cluster}
\title{Coerce an Object to a Cluster Object}
\usage{
as.cluster(x, ...)

\method{as.cluster}{cluster}(x, ...)

\method{as.cluster}{list}(x, ...)

\method{as.cluster}{SOCKnode}(x, ...)

\method{as.cluster}{SOCK0node}(x, ...)

\method{as.cluster}{RichSOCKnode}(x, ...)

\method{c}{cluster}(..., recursive = FALSE)
}
\arguments{
\item{x}{An object to be coerced.}

\item{\dots}{Additional arguments passed to the underlying coercion method.
For \code{c(...)}, the clusters and cluster nodes to be combined.}

\item{recursive}{Not used.}
}
\value{
An object of class \code{cluster}.

\code{c(...)} combine multiple clusters and / or cluster nodes into one
cluster returned as an of class \code{cluster}.  A warning will be produced if
there are duplicated nodes in the resulting cluster.
}
\description{
Coerce an Object to a Cluster Object
}
\examples{
cl1 <- makeClusterPSOCK(2, dryrun = TRUE)
cl2 <- makeClusterPSOCK(c("n1", "server.remote.org"), dryrun = TRUE)
cl <- c(cl1, cl2)
print(cl)
}