shojiURL: Get a resource URL from a Shoji Object

View source: R/shoji.R

shojiURLR Documentation

Get a resource URL from a Shoji Object

Description

Get a resource URL from a Shoji Object

Usage

shojiURL(
  x,
  collection = c("catalogs", "views", "fragments", "orders"),
  key,
  mustWork = TRUE
)

Arguments

x

a shojiObject

collection

one of c("catalogs", "views", "fragments", "orders")

key

character name of the URL to get from collection

mustWork

logical: error if the URL is not found? Default is TRUE

Value

The indicated URL, or if it does not exist and mustWork is not TRUE, NULL.


Crunch-io/rcrunch documentation built on April 1, 2024, 1:14 a.m.