can´t install packages on R studio, "non-zero exit status"

Hi Expert,

I'm new to RStudio. So i was unable to install packages from RStudio and it always give me "non-zero exit status". I'm using Windows10 and the packages I'm trying to install is rmcfs.

Does anyone know how to fix this? Any recommendations/comments/suggestions?
I really need your help.
Thank you.
Fatin

Solved!

install.packages("rmcfs", INSTALL_opts="--no-multiarch")

just use this code to install the packages.

Just to clarify for others reading this post, that option will tell R to install the package only for the architecture currently in use (i.e. x32 or x64), this usually happens when you install R for both architectures but you only have a compiler for one of them installed in your system, and you are trying to compile packages from source. To avoid this problem, only install R for the architecture you are actually going to use or install the proper compiling tools for both of them.

1 Like

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.