twsClock: A clock utility to display the TWS server time...

Description Usage Arguments Details Value References Examples

View source: R/twsClock.R

Description

A clock utility to display the TWS server time

Usage

1
twsClock(format = "%H:%M:%S", refresh = 1, verbose = TRUE)

Arguments

format

format

refresh

refresh rate

verbose

be verbose about what clientId you are connected with?

Details

adapted from the code in the links in references

Value

live updating current time as reported by reqCurrentTime. Press escape to exit clock utility.

References

http://stackoverflow.com/questions/5953718/overwrite-current-output-in-the-r-console

http://4dpiecharts.com/2011/05/11/a-clock-utility-via-console-hackery/

http://www.asciitable.com/

Examples

1
2
3
4
5
## Not run: 
twsClock()
twsClock("%A %d %B %Y %I:%M:%OS3 %p", 1e-3)

## End(Not run)

twsInstrument documentation built on May 2, 2019, 5:24 p.m.