If your R Studio server is running Ubuntu or Linux Mint, try installing the libgmp-dev package on it.