메뉴 건너뛰기

웹에서 하는 R 통계

p147 require(xlsx) 안됩니다

2017.03.16 21:01

KCRS_LeeJM 조회 수:145

> install.packages("xlsx")

Installing package into ‘C:/Users/R studio/Documents/R/win-library/3.3’

(as ‘lib’ is unspecified)

also installing the dependencies ‘rJava’, ‘xlsxjars’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/xlsxjars_0.6.1.zip'

Content type 'application/zip' length 9485184 bytes (9.0 MB)

downloaded 9.0 MB


trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/xlsx_0.5.7.zip'

Content type 'application/zip' length 401439 bytes (392 KB)

downloaded 392 KB


package ‘xlsxjars’ successfully unpacked and MD5 sums checked

package ‘xlsx’ successfully unpacked and MD5 sums checked


The downloaded binary packages are in

C:\Users\R studio\AppData\Local\Temp\Rtmpk9OK6y\downloaded_packages


이거 다음에 

require(xlsx)하면


필요한 패키지를 로딩중입니다: xlsx

Failed with error:  ‘‘rJava’에 의해 요구된 패키지 ‘xlsx’를 찾을 수 없습니다’


> install.packages("rJava")

Installing package into ‘C:/Users/R studio/Documents/R/win-library/3.3’

(as ‘lib’ is unspecified)

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rJava_0.9-8.zip'

Content type 'application/zip' length 713967 bytes (697 KB)

downloaded 697 KB


package ‘rJava’ successfully unpacked and MD5 sums checked


The downloaded binary packages are in

C:\Users\R studio\AppData\Local\Temp\Rtmpk9OK6y\downloaded_packages

> require(xlsx)

필요한 패키지를 로딩중입니다: xlsx

필요한 패키지를 로딩중입니다: rJava

Error : .onLoad가 loadNamespace()에서 'rJava'때문에 실패했습니다:

  호출: fun(libname, pkgname)

  에러: JAVA_HOME cannot be determined from the Registry

Failed with error:  ‘패키지 ‘rJava’는 로드되어질 수 없습니다’


어떻게 해야 되나요?