RStudio 3.2.2 패키지 설치 실패 정보

1465 단어 패키지 설치CRAN
Warning in install.packages :
  InternetOpenUrl failed: ' '
Warning in install.packages :
  InternetOpenUrl failed: ' '
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.2
Packages which are only available in source form, and may
  need compilation of C/C++/Fortran: ‘reshape2’ ‘NMF’
  ‘igraph’
  These will not be installed
installing the source packages ‘ggplot2’, ‘magrittr’, ‘irlba’

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_1.0.1.tar.gz'
Warning in install.packages :
  InternetOpenUrl failed: ' '
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/src/contrib/ggplot2_1.0.1.tar.gz'
Warning in install.packages :
  download of package ‘ggplot2’ failed
trying URL 'https://cran.rstudio.com/src/contrib/magrittr_1.5.tar.gz'

사실 CRAN으로 바꾸면 돼요.
단계:
1. 우선, 당신은 열 수 있습니다http://mirror.bjtu.edu.cn/cran/이 사이트는 적당한 거울 주소를 선택한다
2. 당신의 R 소프트웨어 디렉터리에 가서 Rprofile을 찾으세요.사이트 이 파일, (E:\R-3.2.21\etc\Rprofile.site 내 디렉토리)
3. 열고 다음 설정 추가
 # set a CRAN mirror        local({r <- getOption("repos")              r["CRAN"] <- "http://mirrors.xmu.edu.cn/CRAN/"options(repos=r)} 여기서 r["CRAN"] <-"http://mirrors.xmu.edu.cn/CRAN/의 오른쪽에 선택한 미러 주소
4. R의 CONSOLE에 패키지를 설치하면 됩니다.

좋은 웹페이지 즐겨찾기