I'm trying to write some R code in Jupyter notebooks (I use python too and would like to be able to use the same app for everything), but I'm having some problems...
I'm on a Mac (Yosemite). I installed Anaconda 3, updated Jupyter, then installed RStudio (which includes R essentials). r-irkernel is installed (I assume also through RStudio), version 0.8.11.
When I try to start an R notebook in Jupyter, it starts a kernel and then immediately it dies. The error given is:
Kernel started: 4275a83e-b2b6-40ef-b161-3a7b2ac57c43
Error: .onLoad failed in loadNamespace() for 'pbdZMQ', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Applications/anaconda3/lib/R/library/pbdZMQ/libs/pbdZMQ.so':
dlopen(/Applications/anaconda3/lib/R/library/pbdZMQ/libs/pbdZMQ.so, 6): Library not loaded: @rpath/libzmq.5.dylib
Referenced from: /Applications/anaconda3/lib/R/library/pbdZMQ/libs/pbdZMQ.so
Reason: image not found
Execution halted
What's the best way forwards, please? What am I missing?
Thanks! :)