Learn R Programming

gofigR (version 1.1.3)

find_workspace: Find a workspace by name, optionally creating it.

Description

Searches the workspaces visible to the current user by name and, optionally, creates a new workspace when no match is found.

Usage

find_workspace(gf, name, description = NULL, create = FALSE)

Value

A workspace object corresponding to the matching (or newly created) workspace.

Arguments

gf

GoFigr client.

name

Name of the workspace to find.

description

Optional description to use if a new workspace is created.

create

Logical; if `TRUE` and the workspace does not exist, a new one is created. If `FALSE`, an error is thrown when no matching workspace is found.