generate: Generate Code

Description Usage Arguments Value See Also

Description

Produces executable code that relies on a SNOW cluster on a single machine and sockets.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
generate(schedule, platform, data, ...)

## S4 method for signature 'SerialSchedule,ANY,ANY'
generate(schedule, platform, data, ...)

## S4 method for signature 'MapSchedule,ANY,ANY'
generate(schedule, platform, data, ...)

## S4 method for signature 'TaskSchedule,ANY,ANY'
generate(schedule, platform,
  portStart = 33000L, minTimeout = 600)

Arguments

schedule

object to generate code from, typically an object of class Schedule

platform

object of class Platform

data

object of class DataSource

...

additional arguments to methods

portStart

first local port to use, can possibly use up to n * (n - 1) / 2 subsequent ports if every pair of n workers must communicate.

minTimeout

timeout for socket connection will be at least this many seconds.

Value

x object of class GeneratedCode

See Also

schedule generic function to create Schedule, writeCode to write and extract the actual code, and makeParallel to do everything all at once.


clarkfitzg/codedoctor documentation built on Nov. 18, 2020, 4:34 p.m.