Installation package problem - IOS - had non-zero exit status

Does it install in R, and somehow fail in RStudio? (If so, you should be able to access the package in RStudio if installed in vanilla R). If not, it's likely not an issue with the IDE itself (see FAQ below for disambiguation)

To figure this out it will help to have more of the error message. The non-zero exit status is generic (basically – something went awry!) but the message itself should contain hints that will help with diagnosing the problem.