1
$\begingroup$

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`.

$Failed

Any ideas?

$\endgroup$
8
  • $\begingroup$ Does << EDCRGTCcode` work? Without .m. $\endgroup$
    – Kuba
    Oct 31, 2018 at 22:15
  • $\begingroup$ It returns this SetDelayed::write: Tag Classify in Classify[x_] is Protected. $\endgroup$
    – kcr
    Oct 31, 2018 at 22:17
  • 2
    $\begingroup$ That is expected because it was written before Classify existed in System` context. So it will interfere. $\endgroup$
    – Kuba
    Oct 31, 2018 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, 2018 at 22:19
  • 2
    $\begingroup$ Well, I think this question should be closed because the failure is caused by a simple mistake? As pointed out by @kuba , the code for loading the package should be << EDCRGTCcode` rather than << EDCRGTCcode.m`. $\endgroup$
    – xzczd
    Mar 23 at 8:17

1 Answer 1

-2
$\begingroup$

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

$\endgroup$
5
  • $\begingroup$ can you explain why anyone should do that? $\endgroup$
    – kcr
    May 24, 2020 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, 2020 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, 2020 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, 2020 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, 2020 at 10:00

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