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$
2
  • $\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
    Commented Jul 9, 2016 at 4:01
  • $\begingroup$ @Mr.Wizard it is a complete duplicate .) $\endgroup$ Commented Jul 9, 2016 at 4:15

1 Answer 1

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.