nwsMktempWs-methods: Create a Temporary netWorkSpace

Description Usage Arguments Details Examples

Description

Create a unique temporary netWorkSpace using the template string.

Usage

1
2
## S4 method for signature 'nwsServer'
nwsMktempWs(.Object, wsNameTemplate)

Arguments

.Object

a nwsServer class object

wsNameTemplate

template for the netWorkSpace name

Details

nwsMktempWs(nwss, wsNameTemplate) returns the name of a temporary space created on the netWorkSpaces server. The template should contain a %d-like construct which will be replaced by a serial counter maintained by the server to generate a unique new netWorkSpace name. The user must then invoke nwsOpenWs or nwsUseWs with this name to create an object to acceess this workspace. WsNameTemplate defaults to __Rws__%010d.

Examples

1
2
3
4
5
6
## Not run: 
s <- nwsServer()
tempWsName <- nwsMktempWs(s, 'temp_%d')
ws <- nwsOpenWs(s, tempWsName)

## End(Not run)

nws documentation built on May 2, 2019, 8:51 a.m.