Got this during the execution of following command in R
> dat <- colindex="colIndex," endrow="23," file="NGAP.xlsx" header="TRUE)</p" read.xlsx="" sheetindex="1," startrow="18,">
Error: could not find function "read.xlsx"
Tried following command
> install.packages("xlsx", dependencies = TRUE)
Installing package into ‘C:/Users/amajumde/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rJava’, ‘xlsxjars’
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/rJava_0.9-8.zip'
Content type 'application/zip' length 766972 bytes (748 KB)
downloaded 748 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/xlsxjars_0.6.1.zip'
Content type 'application/zip' length 9485170 bytes (9.0 MB)
downloaded 9.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/xlsx_0.5.7.zip'
Content type 'application/zip' length 400968 bytes (391 KB)
downloaded 391 KB
package ‘rJava’ successfully unpacked and MD5 sums checked
package ‘xlsxjars’ successfully unpacked and MD5 sums checked
package ‘xlsx’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\amajumde\AppData\Local\Temp\Rtmpsjz0gW\downloaded_packages
->
> dat <- colindex="colIndex," endrow="23," file="NGAP.xlsx" header="TRUE)</p" read.xlsx="" sheetindex="1," startrow="18,">
Error: could not find function "read.xlsx"
Tried following command
> install.packages("xlsx", dependencies = TRUE)
Installing package into ‘C:/Users/amajumde/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rJava’, ‘xlsxjars’
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/rJava_0.9-8.zip'
Content type 'application/zip' length 766972 bytes (748 KB)
downloaded 748 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/xlsxjars_0.6.1.zip'
Content type 'application/zip' length 9485170 bytes (9.0 MB)
downloaded 9.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/xlsx_0.5.7.zip'
Content type 'application/zip' length 400968 bytes (391 KB)
downloaded 391 KB
package ‘rJava’ successfully unpacked and MD5 sums checked
package ‘xlsxjars’ successfully unpacked and MD5 sums checked
package ‘xlsx’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\amajumde\AppData\Local\Temp\Rtmpsjz0gW\downloaded_packages
->
> library(xlsx)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Error: package ‘rJava’ could not be loaded
Need to fix this rJava problem from my previous post
http://arinsoracle.blogspot.in/2016/06/error-onload-failed-in-loadnamespace.html
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
Error: package ‘rJava’ could not be loaded
Need to fix this rJava problem from my previous post
http://arinsoracle.blogspot.in/2016/06/error-onload-failed-in-loadnamespace.html
Comments