You need to make sure that the rJava package is working. Consider using the readxl package instead of xlsx.
Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance thierry.onkel...@inbo.be Havenlaan 88 bus 73, 1000 Brussel www.inbo.be /////////////////////////////////////////////////////////////////////////////////////////// To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey /////////////////////////////////////////////////////////////////////////////////////////// 2018-01-16 13:08 GMT+01:00 Emeka Don <emekad...@gmail.com>: > Dear All, > I have been trying to install Xlsx package in R but i have been getting > this error after the installation. Please can anyone help? > >> any(grepl("xlsx",installed.packages())) > [1] TRUE >> library("xlsx") > Loading required package: rJava > Error: package or namespace load failed for ‘rJava’: > .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 > In addition: Warning messages: > 1: package ‘xlsx’ was built under R version 3.4.3 > 2: package ‘rJava’ was built under R version 3.4.3 > > Thank you > > -- > Onyeuwaoma Nnaemeka Dom PhD. > Scientific Officer. > Center for Basic Space Science (CBSS) > National Space Research and Development Agency (NASRDA) > Federal Ministry of Science and Technology > University of Nigeria, Nsukka > P. M. B. 2022, Nsukka, Enugu State, Nigeria. > +2348032686377, +2347052835685 > email:onyeuwaoma.em...@cbss.nasrda.gov.ng > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.