Space Shift !

Error: package or namespace load failed for ‘rJava’: .onLoad가 loadNamespace()에서 'rJava'때문에 실패했습니다 본문

레벨업(level up)/R

Error: package or namespace load failed for ‘rJava’: .onLoad가 loadNamespace()에서 'rJava'때문에 실패했습니다

레이필 2018. 9. 8. 11:37
> library(rJava)
Error: package or namespace load failed for ‘rJava’:
 .onLoad가 loadNamespace()에서 'rJava'때문에 실패했습니다:
  호출: inDL(x, as.logical(local), as.logical(now), ...)
  에러: unable to load shared object 'C:/Users/rayfeel/Documents/R/win-library/3.4/rJava/libs/x64/rJava.dll':
  LoadLibrary failure:  지정된 모듈을 찾을 수 없습니다.

이런 에러 발생시 1. 자바 최신버전 설치     https://www.oracle.com/technetwork/java/javase/downloads/jre10-downloads-4417026.html

    2.   R에서 자바 런타임 시스템환경변수 변경

    

> Sys.setenv(JAVA_HOME = 'C:\\Program Files\\Java\\jre-10.0.2') 


    3.   rJava 패키지 설치

> install.packages("rJava")
Installing package into ‘C:/Users/rayfeel/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rJava_0.9-10.zip'
Content type 'application/zip' length 726100 bytes (709 KB)
downloaded 709 KB

package ‘rJava’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\rayfeel\AppData\Local\Temp\Rtmp6NUvSW\downloaded_packages


Comments