ResourceRegister
✖
ResourceRegister
creates a persistent cache of a resource object that can be referenced by name.
Details and Options

- The resource can be either a ResourceObject or ResourceFunction.
- The resource cache contains both metadata and contents.
- The persistence locations can be any of the values supported by PersistenceLocation.
- ResourceRegister[resource] is equivalent to ResourceRegister[resource,$PersistenceBase].
- Registering a private resource allows it to be referenced by name in ResourceObject[name] and other appropriate functions.
- Additional functions that accept a registered resource name depend on the resource's "ResourceType".
- Resources from a public Wolfram repository can always be found using ResourceObject[name] without using ResourceRegister.
- ResourceRegister[resource] returns the resource.
- DeleteObject removes both the resource registry and any local cache of the resource.
- If the resource is registered in a "Local" PersistenceLocation, the resource content will be cached locally with LocalCache[resource].
- If the resource is registered in a "Cloud" PersistenceLocation, the resource content will be deployed to the cloud with CloudDeploy[resource].
Examples
open allclose allBasic Examples (2)Summary of the most common use cases

https://wolfram.com/xid/0btn4thfgo02-gcldru


https://wolfram.com/xid/0btn4thfgo02-oxgg6

Retrieve the data by using the resource name in ResourceData:

https://wolfram.com/xid/0btn4thfgo02-bjp8th

Register a ResourceFunction:

https://wolfram.com/xid/0btn4thfgo02-38cpbf


https://wolfram.com/xid/0btn4thfgo02-qlcedc

Reference the function by name:

https://wolfram.com/xid/0btn4thfgo02-klp46s

Scope (2)Survey of the scope of standard use cases

https://wolfram.com/xid/0btn4thfgo02-kh3qt

The resource is not discoverable by name:

https://wolfram.com/xid/0btn4thfgo02-flpx68


Registering the resource allows it to be discovered by name:

https://wolfram.com/xid/0btn4thfgo02-d85j5t

Create a new neural net resource:

https://wolfram.com/xid/0btn4thfgo02-ffncuv

Register the resource locally and in the Wolfram Cloud:

https://wolfram.com/xid/0btn4thfgo02-cyjeed

Properties & Relations (2)Properties of the function, and connections to other functions
Resource registration persists between sessions:

https://wolfram.com/xid/0btn4thfgo02-d0h6xx

Register the resource and Quit the kernel session:

https://wolfram.com/xid/0btn4thfgo02-c8bq31
The resource is cached to disk and can be referenced by name:

https://wolfram.com/xid/0btn4thfgo02-jd1dnb

Resource registrations remain until they are removed:

https://wolfram.com/xid/0btn4thfgo02-w5v3hi

DeleteObject removes the resource from the registry:

https://wolfram.com/xid/0btn4thfgo02-otwe3r


Possible Issues (1)Common pitfalls and unexpected behavior
Registering a second resource with an identical name will replace the original resource in the registry:

https://wolfram.com/xid/0btn4thfgo02-u27qxk

https://wolfram.com/xid/0btn4thfgo02-h5th08

https://wolfram.com/xid/0btn4thfgo02-edb7h0


https://wolfram.com/xid/0btn4thfgo02-cxnqpa

Referencing the resource by name will give the new result:

https://wolfram.com/xid/0btn4thfgo02-hlees5

The first resource still exists and can be used with the ResourceObject:

https://wolfram.com/xid/0btn4thfgo02-mmh8t

Wolfram Research (2017), ResourceRegister, Wolfram Language function, https://reference.wolfram.com/language/ref/ResourceRegister.html.
Text
Wolfram Research (2017), ResourceRegister, Wolfram Language function, https://reference.wolfram.com/language/ref/ResourceRegister.html.
Wolfram Research (2017), ResourceRegister, Wolfram Language function, https://reference.wolfram.com/language/ref/ResourceRegister.html.
CMS
Wolfram Language. 2017. "ResourceRegister." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ResourceRegister.html.
Wolfram Language. 2017. "ResourceRegister." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ResourceRegister.html.
APA
Wolfram Language. (2017). ResourceRegister. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ResourceRegister.html
Wolfram Language. (2017). ResourceRegister. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ResourceRegister.html
BibTeX
@misc{reference.wolfram_2025_resourceregister, author="Wolfram Research", title="{ResourceRegister}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ResourceRegister.html}", note=[Accessed: 20-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_resourceregister, organization={Wolfram Research}, title={ResourceRegister}, year={2017}, url={https://reference.wolfram.com/language/ref/ResourceRegister.html}, note=[Accessed: 20-May-2025
]}