0
$\begingroup$

When I call Information of a function defined in Package I get always the result that shows the function with full name Private variables.

For example:

BeginPackage["test`"];

testFunction::usage="testFunction";
testMean::usage="data";

Begin["`Private`"];

testFunction[n_]:=Module[{data},data=RandomReal[10,{n,2}];
testMean=Mean[data]];

End[];

EndPackage[];

once I load the Package and enter:

?? testFunction

I get this result which shows clearly that the Private variable are shown in full name.

enter image description here

what to do to just view the name of the variables without its context.

Thank you

$\endgroup$

marked as duplicate by Mr.Wizard Jul 9 '16 at 4:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ I marked this as a duplicate of the question happy fish linked to as it surely looks like one to me. If you feel that you need something else please edit your question to reference that one and explain how your requirements differ. $\endgroup$ – Mr.Wizard Jul 9 '16 at 4:01
  • $\begingroup$ @Mr.Wizard it is a complete duplicate .) $\endgroup$ – Algohi Jul 9 '16 at 4:15
1
$\begingroup$
Needs["GeneralUtilities`"];
PrintDefinitions[testFunction]

More methods here: 1742

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.