isStataReady: Check if Stata instance is ready to receive a job (running...

isStataReadyR Documentation

Check if Stata instance is ready to receive a job (running and not busy)

Description

Check if Stata instance is ready to receive a job (running and not busy)

Usage

isStataReady(id, timeout = 1)

Arguments

id

An object of S3 class 'StataID' generated by startStata

timeout

Seconds to wait for Stata to respond. Default: 1. Warning: too low value may result in “false nagative” i.e. non-busy Stata instance not managing to reply on time; too high value may unnecessairly slow down the execution of your R code – setting up this parameter optimally may require some trial and error based on your hardware (setting timeout as low as possible without producing “false positives”).

Value

TRUE or FALSE


alekrutkowski/RStataLink documentation built on March 22, 2023, 2:18 a.m.