I am following the code to test a Bayesian model here: Basic Bayesian examples
When running code
library(brms)
jill=brm(Murder ~ Assault*Rape*UrbanPop, data=USArrests, cores=4)
got error message below:
Error in compileCode(f, code, language = language, verbose = verbose) :
C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file5d847de82c9c.o:file5d847de82c9c.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D0Ev[_ZN3tbb8internal26task_scheduler_observer_v3D0Ev]+0x1d): undefined reference to tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file5d847de82c9c.o:file5d847de82c9c.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x1d): undefined reference to
tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file5d847de82c9c.o:file5d847de82c9c.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x3a): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: file5d847de82c9c.o:file5d847de82c9c.cpp:(.text$_ZN3tbb10interface
Error in sink(type = "output") : invalid connection
Don't know what is wrong, I would appreciate very much if anyone can help fix the issue. Thank you!