RStudio problem in the installation package factoextra

After recently doing a little work R language, which need to use cluster analysis section factoextra installation package, enter install.packages ( "factoextra") in RStudio in, has been a "test drive url: ....." case, such a long time have not been downloaded. Explore the steps are as follows:

Click on the menu bar Tools- RStusion (1)> install packages-> CRAN select Options -> Download, does not work! ! Still above results! ! ! The exclusion method.

(2) Enter the following code RStusio:

> # Clear Environment 
> RM (LS = List ()) 
> # installation package and the package loaded 
> # required using k-means clustering packages: factoextra and Cluster 
> Site = "HTTPS: //mirrors.tuna.tsinghua. edu.cn/CRAN " 
> package_list = C (" factoextra "," Cluster ") 
> for (P in package_list) { 
+ IF (! SuppressWarnings (the SuppressMessages (the require (P, character.only = TRUE, TRUE = quietly, The warn = FALSE .conflicts)))) { 
+ install.packages (P, Repos = Site) 
+ SuppressWarnings (the SuppressMessages (Library (P, character.only = TRUE, TRUE = quietly, warn.conflicts = FALSE))) 
+} 
+ }

 A minute, get! ! !

Guess you like

Origin www.cnblogs.com/iceywu/p/12055090.html