I wish to automate the loading of packages by using Map and Get but Mathematica doesn't seem to like it. How can I make this work?
This is how packages are normally loaded...
<< Testpack`
<< NBStyles`
<< NBUtilities`
<< NBTaskmate`
This is what I am trying to do...
$packages = {Testpack`, NBStyles`, NBUtilities`, NBTasknmate`};
Map[Get[#] &, $packages]
But it returns an error messaage...
Syntax::sntxf: "$packages=" cannot be followed by "{NBStyles`,NBUtilities`,NBTasknmate`,Testpack`}".
<<
for of Get, and only if certain characters are present in the string (see details section of its documentation). Otherwise the input to get must be aString
object, delimited by " ". $\endgroup$