haven package not loading on Mac

I have repeatedly tried to install the haven package and keep getting errors saying that its installation has "non-zero exit status." I tried answering both yes and no to these prompts:

Do you want to install from sources the packages which need compilation?
y/n:
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘ellipsis’
‘vctrs’
Do you want to attempt to install these from sources?
y/n:

Either way, I was unable to install haven on my Mac. Any suggestions??

Please post the whole error message you are getting as formatted code, here is how to do it

I ended up fixing it with this:

install.packages("haven", repo = "https://mac.R-project.org")

Thank you!

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