Portable System Utilities

Powerful replacements for base system2 with consistent behavior across platforms. Supports interruption, background tasks, and full control over 'STDOUT' / 'STDERR' binary or text streams. On Unix systems the package also has functions for evaluating expressions inside a temporary fork. Such evaluations have no side effects on the main R process, and support reliable interrupts and timeouts. This provides the basis for a 'sandboxing' mechanism.


News

1.5

  • rlimit values 0 are now ignored and Inf means RLIM_INFINITY
  • Windows: fix crash for very long commands

1.4

  • Fix bug when 'timeout' was given as integer instead of double
  • Workaround undefined RLIMIT_AS on OpenBSD
  • Use graphics.off() instead of dev.off() to shut down all graphics devices
  • Added aa_config() to query apparmor status on supported platforms
  • On Linux, eval_fork() now kills entire child process group when parent dies
  • The exec() functions no longer change process group on OSX

1.3

  • Use AppArmor (required) on Debian/Ubuntu in eval_safe()
  • Disable console and finalizers inside forked procs
  • Add support for rlimits, priority, uid, gid and profile in eval_safe()

1.2:

  • Windows: show informative system error messages on failures
  • Unix: exec_background() does not wait for 1/2 a second (#6, #7, @gaborcsardi)
  • Unix: new functions eval_fork() and eval_safe()
  • Many little tweaks

1.1:

  • Switch from SIGHUP to SIGKILL to kill child process
  • Child now uses a pipe to send errno to parent when execvp() fails
  • Unit tests that require 'ping' are skipped if 'ping' is not available

1.0:

  • CRAN release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("sys")

1.5 by Jeroen Ooms, 7 months ago


https://github.com/jeroen/sys#readme


Report a bug at https://github.com/jeroen/sys/issues


Browse source code at https://github.com/cran/sys


Authors: Jeroen Ooms [aut, cre], Gábor Csárdi [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests unix, testthat

System requirements: libapparmor-dev (optional, debian/ubuntu only)


Imported by antiword, opencpu, rtika, unrtf.

Suggested by redux.


See at CRAN