selecting CRAN mirror from remote device
问题 I am running jobs remotely, and the cluster I am running it on does not have the R package I require. I have tried to install it using: if(!require(hglm)){install.packages("hglm");require(hglm)} and realise that I am required to select a CRAN mirror. I tried adding: selectCRANmirror() to the script, but received the error message, cannot select CRAN mirror non-interactively. I then tried adding: selectCRANmirror(ind=72) as this is what I would use on my local computer to set the CRAN mirror