inst/examples/hello.R

library(nws)
host = 'localhost'
port = 8765
wsname = 'hello'

nws = netWorkSpace(wsname, host, port)

count = 10
cat('hello: iterations:', count, '\n')
nwsStore(nws, 'hello example', count)

for (i in 1:count) {
  nwsStore(nws, 'hello', i)
  j = nwsFetch(nws, 'hello')
}

nwsFetch(nws, 'hello example')
cat('Success\n')

Try the nws package in your browser

Any scripts or data that you put into this service are public.

nws documentation built on May 29, 2017, 11 p.m.