Learn R Programming

nws (version 1.6.2)

nwsMktempWs-methods: nwsServer class method

Description

Create a unique temporary netWorkSpace using the template string.

Usage

## S3 method for class '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

Run this code
s <- nwsServer()
tempWsName <- nwsMktempWs(s, 'temp_%d')
ws <- nwsOpenWs(s, tempWsName)

Run the code above in your browser using DataLab