wait: hold up R while GDP is processing

waitR Documentation

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 signature 'geojob'
wait(
  .Object,
  sleep.time = gconfig("sleep.time"),
  show.progress = gconfig("show.progress")
)

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

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

Value

invisible return of .Object, unaltered

Examples

## Not run: 
job <- geoknife(stencil = c(-89,42), fabric = 'prism')
2+2
wait(job, show.progress = TRUE)
check(job) # should be complete

## End(Not run)

USGS-R/geoknife documentation built on April 17, 2023, 8:26 p.m.