Calling Linux functions from R -
i have been using system
function within r
part of workflow call linux commands. 1 item puzzling me functions seem work , others not.
for example, if call system("ps")
within r
, gives me list of process ids, time, , cmd.
but if invoke system("top")
, following error:
term environment variable not set.
anyone know how fix this? workflow consists of running rstudio
server browser sits on windows box. conveinient me not have open putty
in order keep tabs on r
processes.
if run top in 'batch' mode can use in system call.
system("top -n 1 -b")
the -n 1 option runs single iteration
the -b option runs in batch mode instead of interactive
Comments
Post a Comment