RA4 is an open collector pin so it will not turn from zero to 5 volts as all the digital pins.
If all you need is to turn your led on & off, then connect your 330 ohms resistor to 5 volts and RA4 pin to junction from led and 330 ohms resistor.
Remember then when pin is on your led will be off.
Cheers
Al.
Bookmarks