Problem installing 'swirl' package

I am getting this error trying to install "swirl"

/bin/sh: x86_64-apple-darwin13.4.0-clang: command not found
make: *** [capture.o] Error 127
ERROR: compilation failed for package ‘rlang’

  • removing ‘/anaconda3/lib/R/library/rlang’
  • restoring previous ‘/anaconda3/lib/R/library/rlang’

Then it tries to install parent package:

  • installing source package ‘testthat’ ...
    ** package ‘testthat’ successfully unpacked and MD5 sums checked
    ** libs

And it fails there too!

/bin/sh: x86_64-apple-darwin13.4.0-clang: command not found
make: *** [init.o] Error 127
ERROR: compilation failed for package ‘testthat’

  • removing ‘/anaconda3/lib/R/library/testthat’

So how do I go about resolving this? Thank you.

Hi Ekram, welcome!

Using R through Anaconda is not recommended (or officially supported) because they don't usually play well together and you are restricted to updating/installing packages from the Anaconda repository (rather than CRAN) using the Anaconda Navigator or the conda console. (also you have to put a "r-" before the package name).

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.