Skip to content

Error in example due to incompatibility with macOS sandboxing #7

Description

@barracuda156
* checking examples ... ERROR
Running examples in ‘sfsmisc-Ex.R’ failed
The error most likely occurred in:

> ### Name: Sys.ps
> ### Title: Return Process Status (Unix 'ps') Information
> ### Aliases: Sys.ps Sys.sizes
> ### Keywords: utilities
> 
> ### ** Examples
> 
> (.pid <- Sys.getpid()) ## process ID of current process
[1] 89213
> Sys.sizes(.pid)
Warning in Sys.ps.cmd() :
  Unknown OS [Operating System]; 'ps' may not be compatible
Warning in Sys.ps.cmd() :
  Unknown OS [Operating System]; 'ps' may not be compatible
Warning in Sys.ps(process, c("rss", "vsz")) :
  Dropping invalid field names rss
sh: /bin/ps: Operation not permitted
Warning in system(cmd, intern = !usefile) :
  running command 'ps -p 89213 -o vsz ' had status 126
Error in Sys.ps(process, c("rss", "vsz")) : 
  call returned less than two lines:
Calls: Sys.sizes -> Sys.ps
Execution halted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions