Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Install a resource function persistently so that it can be used like a built-in function
ResourceFunction["PersistResourceFunction"][rf] installs the resource function f persistently. | |
ResourceFunction["PersistResourceFunction"][rf,"Uninstall"] uninstalls the resource function f. | |
ResourceFunction["PersistResourceFunction"]["List"] lists the currently installed resource functions. |
Store ResourceFunction["RainbowText"] persistently:
In[1]:= | ![]() |
Out[1]= | ![]() |
Use it like a built-in function:
In[2]:= | ![]() |
Out[2]= | ![]() |
The definition persists across kernel sessions:
In[3]:= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
Uninstall the function:
In[5]:= | ![]() |
Out[5]= | ![]() |
Multiple resource functions can be installed or uninstalled by supplying a list of ResourceFunction objects or function names as the first argument to PersistResourceFunction:
In[6]:= | ![]() |
Out[6]= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
The currently installed resource functions can be listed with PersistResourceFunction["List"]:
In[8]:= | ![]() |
Out[8]= | ![]() |
In[9]:= | ![]() |
Out[9]= | ![]() |
The "PersistenceLocation" option allows for storing resource functions in a location other than $PersistenceBase:
In[10]:= | ![]() |
Out[10]= | ![]() |
The underlying PersistentObject storing a resource function can be found with InitializationObjects:
In[11]:= | ![]() |
Out[11]= | ![]() |
In[12]:= | ![]() |
Out[12]= | ![]() |
Installing a ResourceFunction will overwrite any values currently assigned to the function name:
In[13]:= | ![]() |
Out[13]= | ![]() |
In[14]:= | ![]() |
Out[14]= | ![]() |
In[15]:= | ![]() |
Out[15]= | ![]() |
Install PersistResourceFunction as a persistent resource function:
In[16]:= | ![]() |
Out[16]= | ![]() |
In[17]:= | ![]() |
Out[17]= | ![]() |
In[18]:= | ![]() |
Out[18]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License