Learn R Programming

geoknife (version 1.6.11)

wait: hold up R while GDP is processing

Description

keeps R in a loop while GDP works on the request. Checks running. Will drop out of loop whenever !running(geojob)

Usage

wait(.Object, ...)

# S4 method for geojob wait( .Object, sleep.time = gconfig("sleep.time"), show.progress = gconfig("show.progress") )

# S4 method for character wait( .Object, sleep.time = gconfig("sleep.time"), show.progress = gconfig("show.progress") )

Value

invisible return of .Object, unaltered

Arguments

.Object

a geojob

...

other arguments passed to methods

sleep.time

numeric (optional) a number of seconds to wait in between checking the process

show.progress

logical (optional) show progress bar or not

Examples

Run this code
if (FALSE) {
job <- geoknife(stencil = c(-89,42), fabric = 'prism')
2+2
wait(job, show.progress = TRUE)
check(job) # should be complete
}

Run the code above in your browser using DataLab