rescans all the installed paclets to rebuild the internal cache of paclet data.
Details and Options
- PacletDataRebuild is only needed in cases where you have manually modified the contents of an installed paclet.
- Paclet functions like PacletInstall, PacletUninstall and PacletDirectoryLoad automatically keep paclet cache information up to date.
- Examples of when you need to call PacletDataRebuild are if you have hand-copied a paclet into $UserBasePacletsDirectory, or if you are developing a paclet in the current session and have changed its contents or its PacletInfo.wl file.
Basic Examples (1)
Create a trivial paclet in a temporary directory:
Change the PacletInfo.wl file to modify the paclet version:
The system has no way to know of the change you just made, so it still reports Version 1.0:
Call PacletDataRebuild to pick up the change:
Wolfram Research (2020), PacletDataRebuild, Wolfram Language function, https://reference.wolfram.com/language/ref/PacletDataRebuild.html.
Wolfram Language. 2020. "PacletDataRebuild." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PacletDataRebuild.html.
Wolfram Language. (2020). PacletDataRebuild. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PacletDataRebuild.html