Creates a new Resource structure.

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"
)
}