DRob said that if you’re explaining things more than 3 times than you should be writing a blog post about it.
If I download packages outside of RStudio, I don’t like the fact that the XQuartz window pops up on MAC OS X. I always forget which CRAN mirror location is closest to me and the GUI seems to always crash my terminal with some weird side effect.
From my previous Python posts, you can already tell I’m not a big fan of tcltk
pop-ups. There always seems to be a non-obvious warning that doesn’t translate well on multiple operating systems.
I’m not interested in changing my .Rprofile right now, so I think the best solution is to follow this SO post for now and just ignore the graphics menu when running R from terminal.
> R
Text about R version, usually named after a Peanuts comic here ------>
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> options(menu.graphics=FALSE)
> install.packages("xgboost")
--- Please select a CRAN mirror for use in this session ---
Secure CRAN mirrors
1: 0-Cloud [https] 2: Algeria [https]
3: Australia (Canberra) [https] 4: Australia (Melbourne 1) [https]
5: Australia (Melbourne 2) [https] 6: Australia (Perth) [https]
7: Austria [https] 8: Belgium (Ghent) [https]
9: Brazil (PR) [https] 10: Brazil (RJ) [https]
11: Brazil (SP 1) [https] 12: Brazil (SP 2) [https]
13: Bulgaria [https] 14: Chile 1 [https]
15: Chile 2 [https] 16: China (Hong Kong) [https]
17: China (Guangzhou) [https] 18: China (Lanzhou) [https]
19: China (Shanghai 1) [https] 20: China (Shanghai 2) [https]
21: Colombia (Cali) [https] 22: Czech Republic [https]
23: Denmark [https] 24: East Asia [https]
25: Ecuador (Cuenca) [https] 26: Ecuador (Quito) [https]
27: Estonia [https] 28: France (Lyon 1) [https]
29: France (Lyon 2) [https] 30: France (Marseille) [https]
31: France (Montpellier) [https] 32: France (Paris 2) [https]
33: Germany (Erlangen) [https] 34: Germany (Göttingen) [https]
35: Germany (Münster) [https] 36: Greece [https]
37: Iceland [https] 38: India [https]
39: Indonesia (Jakarta) [https] 40: Ireland [https]
41: Italy (Padua) [https] 42: Japan (Tokyo) [https]
43: Japan (Yonezawa) [https] 44: Korea (Busan) [https]
45: Korea (Gyeongsan-si) [https] 46: Korea (Seoul 1) [https]
47: Korea (Ulsan) [https] 48: Malaysia [https]
49: Mexico (Mexico City) [https] 50: Norway [https]
51: Philippines [https] 52: Serbia [https]
53: Spain (A Coruña) [https] 54: Spain (Madrid) [https]
55: Sweden [https] 56: Switzerland [https]
57: Turkey (Denizli) [https] 58: Turkey (Mersin) [https]
59: UK (Bristol) [https] 60: UK (London 1) [https]
61: USA (CA 1) [https] 62: USA (IA) [https]
63: USA (KS) [https] 64: USA (MI 1) [https]
65: USA (OR) [https] 66: USA (TN) [https]
67: USA (TX 1) [https] 68: Uruguay [https]
69: (other mirrors)
And then maybe later after referring to this several times, I’ll invest time into adding these global options in my .RProfile
.