background-package: Background calculations

Description Details Author(s) Examples

Description

Perform calculations concurently in the background thereby freeing the R console to perform other tasks. The package currently supports a sequential backend, where the calculation is evaluted when it is brought into the foreground along with a multicore backend, where the calculation is started immediately after it is backgrounded. Other packages, such as multicore.background can be used for true process backgrounding.

Details

Package: background
Type: Package
Version: 0.1
Date: 2011-04-07
License: LGPL-2
LazyLoad: yes

Author(s)

Michael J. Kane

Maintainer: Mike <kaneplusplus@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# Background a simple R expression.
bg.comp <- bg({Sys.sleep(2); "Awake!\n"})

# If the calculation is not complete do something else.
if (!done(bg.comp)) {
  cat("Waiting for calculation\n")
}

# Output the result.
cat(fg(bg.comp))

## End(Not run)

background documentation built on May 2, 2019, 5:23 p.m.