r-lib / ps

R package to query, list, manipulate system processes
https://ps.r-lib.org/
Other
72 stars 18 forks source link

`ps` causes an error if both of its arguments are assigned #129

Closed gcaligari closed 2 years ago

gcaligari commented 2 years ago

Hello,

Thank you for your package.

While using the package, I noticed that when using the function ps, if no arguments or one argument alone is assigned, the function works as intended. However, ps produces an error when it is run with both its arguments user and after assigned.

ps version = 1.6.0 R version = 4.0.4

The reproducible code can be found below.

Thanks, Giulia

library(ps)
ps(user = "root",after = as.POSIXct('2022-05-15', tz = "GMT"))
#> Error in data.frame(stringsAsFactors = FALSE, pid = pd, ppid = pp, name = nm, : arguments imply differing number of rows: 26, 39