Clang error

Thanks @bgoodri.

I have tried to run the code on desktop (Windows 10) but get the error “R session aborted” and could not compile it. I have mentioned about the error “R session aborted” in another post R Session Aborted but could not figure out how to fix the error on desktop.
I would appreciate it if someone could help me. I am trying to run the same code as given in the link given here.

Thanks