newResource | R Documentation |
Creates a new Resource structure.
newResource(name = "", url, identity = NULL, secret = NULL, format = NULL)
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. |
{
# make a SPSS file resource
res <- resourcer::newResource(
name = "CNSIM1",
url = "file:///data/CNSIM1.sav",
format = "spss"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.