I am facing a problem in loading the package RTGC. I want to load the file EDCRTGC.m. But when I am giving the command

EDCRTGCcode.m

it shows the following error

SetDelayed: Tag Classify in Classify[x_] is Protected.

What should I do?

• You could try to go into the package and change each occurence of Classify to classify, RTGC Classify or any other symbol that is not built-in. Jun 10 '18 at 7:13
• Inside the package Classify seems like a function acting on some argument. Is this the only way? Jun 10 '18 at 8:18
• Quite likely. The point is that Classify has become a built-in symbol in newer versions of Mathematica so that must not be overwritten by the package. Jun 10 '18 at 8:20
• You can also try to evaluate Unprotect[Classify];ClearAll[Classify]; before loading the package. Jun 10 '18 at 8:28
• It should be enough to change first occurrence of Classify symbol in package file to EDCRTGCClassify (or whatever context this package is using). You'll get shadowing warning, and context-free Classify symbol will be red, but there's nothing wrong with that. EDCRTGCClassify and SystemClassify will be separate symbols with separate definitions living in separate contexts not interfering with each other. If you don't want to edit package file, evaluation of EDCRTGCClassify symbol, before loading the package, should also do the trick. Jun 10 '18 at 14:07

You can also try to evaluate Unprotect[Classify];ClearAll[Classify]; before loading the package.
• Might also be worth noting how dangerous this is if they ever want to use a Classifier Jun 12 '18 at 18:09