newResource: Create a Resource

View source: R/resource.R

newResourceR Documentation

Create a Resource

Description

Creates a new Resource structure.

Usage

newResource(name = "", url, identity = NULL, secret = NULL, format = NULL)

Arguments

name

Otpional human friendly name that identifies the resource.

url

URL to access the resource whether it is data or computation capability.

identity

User name or account ID (if credentials are applicable).

secret

User password or token (if credentials are applicable).

format

Data format, to help resource resolver identification and coercing to other formats, optional.

Examples

{
# make a SPSS file resource
res <- resourcer::newResource(
  name = "CNSIM1",
  url = "file:///data/CNSIM1.sav",
  format = "spss"
)
}


resourcer documentation built on April 25, 2023, 5:10 p.m.