$ResourceSystemPath
gives the default list of locations at which to look for resource objects.
Details
- The elements of $ResourceSystemPath include:
-
URL[…] URL of a resource system as in $ResourceSystemBase PersistenceLocation["type"] location of deployed resources - By default, $ResourceSystemPath includes the following elements in the given order without duplicates:
-
$PersistencePath list of persistence locations $ResourceSystemBase the current resource system base URL[] the Wolfram Resource System PersistenceLocation["Cloud"] Wolfram Cloud persistence location (when cloud connected) - $ResourceSystemPath provides the default value of the ResourceSystemPath option for ResourceObject["name"], ResourceFunction["name"] and ResourceSearch.
- The elements of $ResourceSystemPath are used in order. When used within ResourceObject, the first resource found along the path is returned.
Examples
open allclose allScope (3)
Define a ResourceFunction in the kernel session:
The function is automatically registered in the kernel sessions and discoverable by name with the default $ResourceSystemPath:
Change the path to only use published resources:
Now the function cannot be found:
Add the "KernelSession" PersistenceLocation:
Now the function is found again:
Set the path to include only locally deployed and published resources:
Properties & Relations (2)
$ResourceSystemPath provides the default value for the ResourceSystemPath option:
Providing a value for ResourceSystemPath supersedes the value of $ResourceSystemPath:
The value of $ResourceSystemBase is included in the default $ResourceSystemPath list before the Wolfram Resource System:
Text
Wolfram Research (2020), $ResourceSystemPath, Wolfram Language function, https://reference.wolfram.com/language/ref/$ResourceSystemPath.html.
CMS
Wolfram Language. 2020. "$ResourceSystemPath." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$ResourceSystemPath.html.
APA
Wolfram Language. (2020). $ResourceSystemPath. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$ResourceSystemPath.html