DS - R| Jun 9 - Jul 8 | Ashutosh

Discussion in 'Big Data and Analytics' started by Rakesh Deshpande, Jun 9, 2018.

  1. Rakesh Deshpande

    Rakesh Deshpande Moderator
    Simplilearn Support

    Joined:
    May 3, 2016
    Messages:
    769
    Likes Received:
    62
    Hi All ,

    Please post your questions here.

    Regards,
    Simplilearnsupport
     
    #1
  2. _21174

    _21174 Member
    Alumni

    Joined:
    Jan 24, 2018
    Messages:
    8
    Likes Received:
    0
    I have R studio installed and I am trying to install the xls package. I get the following error. My Operating system is Windows 7

    upload_2018-6-10_22-34-14.png
     
    #2
  3. Priyanka_Mehta

    Priyanka_Mehta Well-Known Member
    Simplilearn Support

    Joined:
    May 25, 2017
    Messages:
    828
    Likes Received:
    57
    Hi Dear, kindly try checking that whether the package is installed or not by using the code mentioned below:
    library("xlsx")
    I am sure it will run, which means your package is successfully installed.

    If still you are stuck, kindly use the path mentioned below to install the packages:

    Click on Packages > Install > Mention you Package name

    And i am sure this will help you.
     
    #3
  4. _20956

    _20956 Member

    Joined:
    Jan 21, 2018
    Messages:
    10
    Likes Received:
    3
    Hi,
    I have Rstudio installed on my Mac system. While trying to install "xlsx" I am getting an error. I even tried to install "rJava" package but that is also not getting installed. Kindly help

    > install.packages("xlsx")
    trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/xlsx_0.6.1.tgz'
    Content type 'application/x-gzip' length 456830 bytes (446 KB)
    ==================================================
    downloaded 446 KB


    The downloaded binary packages are in
    /var/folders/yy/qvylyhqn0w35yd3402y92_nm0000gn/T//RtmpT0cqCa/downloaded_packages
    > library(xlsx)
    Unable to find any JVMs matching version "(null)".
    No Java runtime present, try --request to install.
    Error: package or namespace load failed for ‘xlsx’:
    .onLoad failed in loadNamespace() for 'rJava', details:
    call: dyn.load(file, DLLpath = DLLpath, ...)
    error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so':
    dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server/libjvm.dylib
    Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so
    Reason: image not found
    In addition: Warning message:
    In system("/usr/libexec/java_home", intern = TRUE) :
    running command '/usr/libexec/java_home' had status 1
    > install.packages("rJava")
    trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.5/rJava_0.9-10.tgz'
    Content type 'application/x-gzip' length 735656 bytes (718 KB)
    ==================================================
    downloaded 718 KB


    The downloaded binary packages are in
    /var/folders/yy/qvylyhqn0w35yd3402y92_nm0000gn/T//RtmpT0cqCa/downloaded_packages
    > library(rJava)
    Unable to find any JVMs matching version "(null)".
    No Java runtime present, try --request to install.
    Error: package or namespace load failed for ‘rJava’:
    .onLoad failed in loadNamespace() for 'rJava', details:
    call: dyn.load(file, DLLpath = DLLpath, ...)
    error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so':
    dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server/libjvm.dylib
    Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so
    Reason: image not found
    In addition: Warning message:
    In system("/usr/libexec/java_home", intern = TRUE) :
    running command '/usr/libexec/java_home' had status 1





    Kindly take a look at it.
    Thanks
     
    #4
  5. Aman Wadhwa

    Aman Wadhwa Customer
    Customer

    Joined:
    Jun 6, 2018
    Messages:
    3
    Likes Received:
    0
    Are you connected to internet?
     
    #5
  6. _21174

    _21174 Member
    Alumni

    Joined:
    Jan 24, 2018
    Messages:
    8
    Likes Received:
    0
    Hi Priyanka,

    Thanks for reaching out. I got this resolved.

    Regards
    Sunitha
     
    #6
  7. _29365

    _29365 Member

    Joined:
    Apr 16, 2018
    Messages:
    2
    Likes Received:
    0
    Hi ,
    While trying to install xlsx package got the following error.
    also installing the dependency ‘xlsxjars’

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/xlsxjars_0.6.1.zip'
    Content type 'application/zip' length 9485456 bytes (9.0 MB)
    downloaded 9.0 MB

    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/xlsx_0.6.1.zip'
    Content type 'application/zip' length 405569 bytes (396 KB)
    downloaded 396 KB

    package ‘xlsxjars’ successfully unpacked and MD5 sums checked
    Warning in install.packages :
    unable to move temporary installation ‘C:\Users\99019563\Documents\R\R-3.4.4\library\file1098386f3c27\xlsxjars’ to ‘C:\Users\99019563\Documents\R\R-3.4.4\library\xlsxjars’
    package ‘xlsx’ successfully unpacked and MD5 sums checked


    Regards,
    Rupesh
     
    #7
  8. Maitri Shah_1

    Maitri Shah_1 New Member

    Joined:
    May 31, 2018
    Messages:
    1
    Likes Received:
    0
    Hi

    This is the healthcare Project

    as it was discussed in the session that the problem statement 1 that is :

    To record the patient statistics, the agency wants to find the age category of people who frequent the hospital and has the maximum expenditure.

    it is similar to problem statement 2 but i have problems to solve the problem statement 2 which is :

    In order of severity of the diagnosis and treatments and to find out the expensive treatments, the agency wants to find the diagnosis related group that has maximum hospitalization and expenditure.

    could you please help how can i do it?
     
    #8

Share This Page