ResourceRegister [resource]
creates a persistent cache of a resource object that can be referenced by name.
ResourceRegister [resource, loc]
stores the resource in persistence location loc.
ResourceRegister [resource,{loc1,…}]
stores the resource in multiple persistence locations.
ResourceRegister
ResourceRegister [resource]
creates a persistent cache of a resource object that can be referenced by name.
ResourceRegister [resource, loc]
stores the resource in persistence location loc.
ResourceRegister [resource,{loc1,…}]
stores the resource in multiple persistence locations.
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 all close allBasic Examples (2)
Create a data resource:
Register the resource:
Retrieve the data by using the resource name in ResourceData :
Register a ResourceFunction :
Reference the function by name:
Scope (2)
Create a new data resource:
The resource is not discoverable by name:
Registering the resource allows it to be discovered by name:
Create a new neural net resource:
Register the resource locally and in the Wolfram Cloud:
Properties & Relations (2)
Resource registration persists between sessions:
Register the resource and Quit the kernel session:
The resource is cached to disk and can be referenced by name:
Resource registrations remain until they are removed:
DeleteObject removes the resource from the registry:
Possible Issues (1)
Registering a second resource with an identical name will replace the original resource in the registry:
Referencing the resource by name will give the new result:
The first resource still exists and can be used with the ResourceObject :
Related Guides
History
Text
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.
APA
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: 09-January-2026]}
BibLaTeX
@online{reference.wolfram_2025_resourceregister, organization={Wolfram Research}, title={ResourceRegister}, year={2017}, url={https://reference.wolfram.com/language/ref/ResourceRegister.html}, note=[Accessed: 09-January-2026]}