Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
ResourceFunction time machine
ResourceFunction["WithDatedResourceFunctions"][date,code] runs the code assuming latest ResourceFunction versions as existed on the specified date. | |
ResourceFunction["WithDatedResourceFunctions"][date] represents an operator form of ResourceFunction["WithDatedResourceFunctions"] that can be applied to a code. |
Check the version of a ResourceFunction:
In[1]:= | ![]() |
Out[1]= | ![]() |
Run code where the ResourceFunction is temporarily downgraded to the latest version as of the specified date:
In[2]:= | ![]() |
Out[2]= | ![]() |
Outside of WithDatedResourceFunctions the original version is maintained:
In[3]:= | ![]() |
Out[3]= | ![]() |
The code can contain multiple resource functions:
In[4]:= | ![]() |
Out[4]= | ![]() |
Use the operator form:
In[5]:= | ![]() |
Out[5]= | ![]() |
A ResourceFunction with old versions and a missing creation date will always return the latest version:
In[6]:= | ![]() |
Out[6]= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
An initialized ResourceFunction object is not affected:
In[8]:= | ![]() |
Out[8]= | ![]() |
Use the name to specify the resource function to ensure dated versions:
In[9]:= | ![]() |
Out[9]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License