R connect to Oracle - library(ROracle) fail -


it won't load library.

setwd("c:/users/***/desktop") install.packages('roracle_1.2-1.zip', repos = null) #installing package ‘c:/users/***/documents/r/win-library/3.3 (as ‘lib’ unspecified)  #package ‘roracle’ unpacked , md5 sums checked  library('roracle') #error in indl(x, as.logical(local), as.logical(now), ...) : unable load shared object 'c:/users/***/documents/r/win-library/3.3/roracle/libs/x64/roracle.dll': loadlibrary failure:  specified module not found. 

i manually checked file path , roracle.dll there.

edit:

i have rodbc , rjdbc working. don't understand why roracle won't install:

library(roracle) error in indl(x, as.logical(local), as.logical(now), ...) :    unable load shared object 'c:/users/robsoo01/documents/r/win-library/3.3/roracle/libs/x64/roracle.dll':   loadlibrary failure:  specified module not found.  error: package or namespace load failed ‘roracle’  install.packages("roracle") installing package ‘c:/users/***/documents/r/win-library/3.3’ (as ‘lib’ unspecified) package available in source form, , may need compilation of c/c++/fortran: ‘roracle’ want attempt install these sources? y/n: y installing source package ‘roracle’  trying url 'https://cran.rstudio.com/src/contrib/roracle_1.2-2.tar.gz' content type 'application/x-gzip' length 304229 bytes (297 kb) downloaded 297 kb  * installing *source* package 'roracle' ... ** package 'roracle' unpacked , md5 sums checked error: cannot find oracle client.        please set oci_lib64 specify location. warning: running command 'sh ./configure.win' had status 1 error: configuration failed package 'roracle' * removing 'c:/users/***/documents/r/win-library/3.3/roracle' * restoring previous 'c:/users/***/documents/r/win-library/3.3/roracle' warning in install.packages :   running command '"c:/progra~1/r/r-33~1.1/bin/x64/r" cmd install -l "c:\users\***\documents\r\win-library\3.3" c:\users\***\appdata\local\temp\rtmpmvclo4/downloaded_packages/roracle_1.2-2.tar.gz' had status 1 warning in install.packages :   installation of package ‘roracle’ had non-zero exit status  downloaded source packages in     ‘c:\users\***\appdata\local\temp\rtmpmvclo4\downloaded_packages’ 

i'm guessing there oracle files need installing, none of documentation clear.

in order roracle install , load properly, should have oracle client 64-bit , windows 64-bit. once installed 64-bit oracle client on machine, error went away.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -