Needs

Needs["context`"]

loads an appropriate file if the specified context is not already in $Packages.

Needs["context`","file"]

loads file if the specified context is not already in $Packages.

Details

  • Needs["context`"] calls Get["context`"]. By convention, the file loaded in this way is the one that contains a package that defines context`.
  • Needs["file`"] typically reads in a file named .

Examples

open allclose all

Basic Examples  (1)

Read in the file for the Computer Arithmetic Package if it has not already been read:

The commands defined by the package are ready for use:

Properties & Relations  (1)

Once[Get[package]] is similar to Needs[package]:

Wolfram Research (1988), Needs, Wolfram Language function, https://reference.wolfram.com/language/ref/Needs.html.

Text

Wolfram Research (1988), Needs, Wolfram Language function, https://reference.wolfram.com/language/ref/Needs.html.

BibTeX

@misc{reference.wolfram_2021_needs, author="Wolfram Research", title="{Needs}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Needs.html}", note=[Accessed: 30-July-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_needs, organization={Wolfram Research}, title={Needs}, year={1988}, url={https://reference.wolfram.com/language/ref/Needs.html}, note=[Accessed: 30-July-2021 ]}

CMS

Wolfram Language. 1988. "Needs." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Needs.html.

APA

Wolfram Language. (1988). Needs. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Needs.html