R installation package encountered a problem (a) loadnamespace () in the "Rjava" when. OnLoad failed Rjava package installation and onboarding

Source: Internet
Author: User

> Library (xlsx) Error:package or namespace load failed for ' xlsx ': Loadnamespace () in the ' Rjava ' when. OnLoad failed, details:  call: Fun (Libname, pkgname)  error: Java_home cannot be determined from the Registry> library (Rjava) error:package or Namespa Ce load failed for ' Rjava ': Loadnamespace () in the ' Rjava ' when. OnLoad failed, details:  Invoke: Fun (Libname, pkgname)  error: Java_home Cannot is determined from the registry> install.packages ("Rjava") trying URL ' Https://mirrors.tongji.edu.cn/CRAN/bin /windows/contrib/3.5/rjava_0.9-10.zip ' Content type ' application/zip ' length 826966 bytes (807 KB) downloaded 807 Kbpackage ' Rjava ' successfully unpacked and MD5 sums checkedthe downloaded binary packages is INC:\USERS\MUZHITIEHE\APPDA Ta\local\temp\rtmp6xz8md\downloaded_packages

An attempt to invoke the XLSX package failed, first installing xlsx, after Rjava, causing Loadnamespace () to calculate ' Rjava ' when. OnLoad failed.

Network reference:

Java environment installation, if the Java installation is 64 bits using R software must be 64 bit, if using 32 bit will error, version must correspond.
2. Installation order if Install.packages ("Rjava")
Install.packages ("Xlsxjars")
Install.packages ("xlsx")
3. If the installation is not installed in the order of installation 2, although Rjava or xlsxjars packages are downloaded, but is not installed on the xlsx, this time you can choose to the R installation directory in the library to find Rjava or xlsxjars deleted, Re-install on the R console.
4. If the display Rjava installation is turned on and cannot be installed, you can use (. Packages ()) to view the currently loaded installation package, discover that Rjava is loaded, and use Detach ("Package:rjava") to uninstall the installation package. Then the install will be executed.

From 75386673

The installation and loading details of the Rjava package are also available.

R installation package encountered a problem (a) loadnamespace () in the "Rjava" when. OnLoad failed Rjava package installation and onboarding

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.