I'm trying to automate the creation of an environment in Windows and need to install devtools for R. I can install it manually from R by running install.packages("devtools"). However, when I do this I am prompted to select a mirror.
Is there a way to specify a mirror in a non-interactive way so that this process can be run as part of a larger process?