I am using

"11.2.0 for Mac OS X x86 (64-bit) (September 11, 2017)"

and I am trying to install the RGTC package, which can be found here.

Download the package

Then following the answer given by Szabolcs here How to Install packages

after I unzip the folder, I opened the EDCRGTCcode.m and then did the following

Choose File -> Install... Choose Type -> Package, Source -> (the open notebook), Install Name -> (i used the exact same name that the notebook has)

Then, I tried to load the package by evaluating

<< EDCRGTCcode.m`

but I get the following error

During evaluation of In[4]:= Get::noopen: Cannot open EDCRGTCcode.m`.


Any ideas?

  • $\begingroup$ Does << EDCRGTCcode` work? Without .m. $\endgroup$
    – Kuba
    Oct 31 '18 at 22:15
  • $\begingroup$ It returns this SetDelayed::write: Tag Classify in Classify[x_] is Protected. $\endgroup$ Oct 31 '18 at 22:17
  • 1
    $\begingroup$ That is expected because it was written before Classify existed in System` context. So it will interfere. $\endgroup$
    – Kuba
    Oct 31 '18 at 22:18
  • 3
    $\begingroup$ This package also does Unprotect["Global`*"];ClearAll["Global`*"];Remove["Global`*"]; so I think it needs a little love to make it more robust. $\endgroup$
    – Kuba
    Oct 31 '18 at 22:19
  • $\begingroup$ @Kuba you are right. I am running some of the examples and it seems that it is working. can you explain a bit more on the situation? Thank you for your comments and the help. $\endgroup$ Oct 31 '18 at 22:20

place that .m file in "/Applications/Mathematica/AddOns/AutoLoad" this directory.

  • $\begingroup$ can you explain why anyone should do that? $\endgroup$ May 24 '20 at 9:07
  • 4
    $\begingroup$ I am afraid this answer is incorrect. It is generally a bad idea to modify the installation directory. Also, the directory you reference does not exist. There is indeed an Autoload (not AutoLoad) directory, but it is not located at this path. In most cases, it may not be the best idea to set up packages to auto-load. $\endgroup$
    – Szabolcs
    May 24 '20 at 10:57
  • $\begingroup$ Normally, packages go into $UserBaseDirectory/Applications. To find out what $UserBaseDirectory is, simply evaluate it in Mathematica. $\endgroup$
    – Szabolcs
    May 24 '20 at 10:57
  • $\begingroup$ for mathematica to load a custom made package it should be placed in the directory so that it can use the resources. you are not interfering with any other packages you are just telling it to load the custom made package. $\endgroup$
    – Ishitva
    May 27 '20 at 9:56
  • $\begingroup$ Autoload or AutoLoad I don't think so if it will make any difference until the directory at the specified path. If it is not there you can always create it. $\endgroup$
    – Ishitva
    May 27 '20 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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