Details and Options
ResourceFunction["PacletizeResourceFunction"] can be used to install a local version of resource functions as paclets, complete with local documentation.
Since ResourceFunction["PacletizeResourceFunction"] stores the code of the resource function in the created paclet, it can be used to ensure that a given version of a function will always be available.
Functions that have been pacletized can be used just like built-in functions, with the paclet automatically being loaded upon first use.
ResourceFunction["PacletizeResourceFunction"] accepts the following options:
"PacletName" | Automatic | the name to use for the paclet created |
"ShowProgress" | True | whether to show the progress of the paclet creation process |
With the default setting
"PacletName"→Automatic, the paclet and context will be named after the resource function for single functions. If several functions are pacletized, a name of the form "PacletizedResourceFunction{
id}" is chosen, where {
id} is a number to avoid name-collisions with existing paclets.
When automatically installing the created paclet, ResourceFunction["PacletizeResourceFunction"] will attempt to uninstall existing versions of the paclet.
Calling ResourceFunction["PacletizeResourceFunction"] with the same arguments a second time effectively updates the resulting paclet to use the latest version of the pacletized functions.
ResourceFunction["PacletizeResourceFunction"] will fill the metadata fields of the generated paclet (such as version, author, …) with the appropriate information from the resource functions.
Some pacletized resource functions might not work as expected if they rely on precise details of the
ResourceFunction loading and evaluation mechanism.
ResourceFunction["PacletizeResourceFunction"][PacletUninstall,paclet] effectively uses
PacletUninstall to remove the paclet, but will attempt to gracefully unload the paclet documentation before doing so. This enables
PacletUninstall to work without needing to restart Mathematica, assuming no other instances are open.