I'm trying to follow Brew doctor: dyld: Library not loaded & Error: No available formula for zlib but it isn't helping. I had my R working earlier today but I installed r-essentials through conda (how my R was installed originally) and am now getting the following error:
$ which R
/Users/jespinoz/anaconda/bin/R
$ /Users/jespinoz/anaconda/bin/R
dyld: Library not loaded: @rpath/libpcre.1.dylib
Referenced from: /Users/jespinoz/anaconda/lib/R/lib/libR.dylib
Reason: image not found
Trace/BPT trap: 5