R / RStudio on Windows VM
The steps below will guide you to install R and RStudio on a Windows VM with the ability to access prackages on cran.r-project.org.
Get R and RStudio for Windows
Download/upload R: https://cran.r-project.org/bin/windows/base/
Download/upload RStudio: https://rstudio.com/products/rstudio/download/#download
Install R and RStudio in Windows VM
R
Find R installable in an Inbox
Copy to desktop
Right click the installable, run as administrator
Delete the installable from the desktop
RStudio
Find RStudio installable in an Inbox
Copy to desktop
Right click the installable, run as administrator
Delete the installable from the desktop
Create External Access Rule for the VM
The External Access Rule should only be turned on when needed by the role Owner. It is strongly advised to turn off the rule when not needed.
Rule IP address Port Reason
CranRproject 137.208.57.37 443 Access to cran.r-project.org
Bioconductor 52.71.54.154 443 Access to bioconductor.org
Installing packages
It is strongly advised to install packages in ADMIN mode, this ensures the installed packages are available for any user accessing the Windows VM.
Rstudio > More > Run as administrator
Type:
options(download.file.method = "libcurl", repos = c("CRAN" = "https://cran.r-project.org/"))
You can now install packages with install.packages.