PacletSymbol[paclet,"sym"]
gives the symbol named "sym" in the primary context of paclet.
PacletSymbol[paclet,"sym",h]
wraps the head h around the symbol before returning it.
PacletSymbol
PacletSymbol[paclet,"sym"]
gives the symbol named "sym" in the primary context of paclet.
PacletSymbol[paclet,"sym",h]
wraps the head h around the symbol before returning it.
Details
- PacletSymbol is a convenient shorthand that installs the paclet if necessary, calls Needs on its primary context and evaluates to the named symbol.
- PacletSymbol loads the primary context of the paclet in a way that does not modify $ContextPath.
- For paclets that are not already installed, the paclet is downloaded and loaded in the current session but not installed for future sessions.
- PacletSymbol is a way to sample a paclet's functionality without permanently installing it or adding its context to the context path.
- The paclet argument can have any of the following forms:
-
"name" name of the paclet or ResourceObject PacletObject[…] a paclet object ResourceObject[…] a resource object of type "Paclet" File[…] a paclet in a given directory - PacletSymbol accepts the same options as ResourceObject.
Examples
open all close allBasic Examples (2)
Scope (2)
Use a function from a PacletObject:
PacletSymbol[PacletObject["Benchmarking"], "BenchmarkReport"][]Hold the returned symbol:
held = PacletSymbol["CloudObject", "$CloudObjectPacletInformation", Hold]Releasing the hold returns the value:
ReleaseHold[held]Properties & Relations (1)
Using a symbol from a paclet typically requires calling Needs:
Needs["Benchmarking`"]Benchmarking`Benchmark[]The Needs call modified $ContextPath:
MemberQ[$ContextPath, "Benchmarking`"]Using PacletSymbol allows the symbol to work without modifying $ContextPath:
$ContextPath = DeleteCases[$ContextPath, "Benchmarking`"];PacletSymbol["Benchmarking", "Benchmark"][]MemberQ[$ContextPath, "Benchmarking`"]Tech Notes
-
▪
- Paclets
Related Guides
History
Text
Wolfram Research (2021), PacletSymbol, Wolfram Language function, https://reference.wolfram.com/language/ref/PacletSymbol.html.
CMS
Wolfram Language. 2021. "PacletSymbol." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PacletSymbol.html.
APA
Wolfram Language. (2021). PacletSymbol. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PacletSymbol.html
BibTeX
@misc{reference.wolfram_2026_pacletsymbol, author="Wolfram Research", title="{PacletSymbol}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/PacletSymbol.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_pacletsymbol, organization={Wolfram Research}, title={PacletSymbol}, year={2021}, url={https://reference.wolfram.com/language/ref/PacletSymbol.html}, note=[Accessed: 12-June-2026]}