Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Jupyter Notebooks using R Kernel question - cannot install a package

    Posted Thu August 19, 2021 03:48 PM
    Good afternoon Cognos-ers!

    I'm hoping someone has solved this problem before.

    I'm getting underway with Jupyter using the R Kernel for the first time.

    The notebook I'm trying to create needs certain packages installed.  One of them is dplyr.

    In the notebook I issue this command in a cell:

    !install.packages('dplyr')

    I get back this in the Notebook:



    In the Docker log for the process associated with my session I get this:



    It appears that the "make" command isn't installed within the Jupyter container.  I tried updating "additional_os_packages.txt" and rebuilding, but that hasn't helped.



    Does anyone have some suggestions or advice?

    Thanks a lot!

    Rich





    ------------------------------
    Richard Chester
    Director of Business Intelligence
    LPA Software Solutions
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Jupyter Notebooks using R Kernel question - cannot install a package

    Posted Fri August 20, 2021 02:04 PM

    Probably not the most elegant solution (and I would be last person to claim to be an R developer) but the following worked for me with some benign errors that may be resolved by someone much smarter than me:

    devtools::install_github("tidyverse/dplyr")

    library(dplyr)

    starwars %>%
    filter(species == "Droid")



    ------------------------------
    DAVID WARNER
    ------------------------------



  • 3.  RE: Jupyter Notebooks using R Kernel question - cannot install a package

    Posted Mon August 23, 2021 10:55 AM
    Hi David,

    Thank you for the reply.  Unfortunately, when I issue the first command (devtools::install_github("tidyverse/dplyr")) I receive fatal errors.

    I'll continue troubleshooting to see if I can get your suggested solution to work.  And hopefully others who have worked with the R Kernel will chime in with thoughts and ideas too.

    Thanks again!

    Rich


    ------------------------------
    Richard Chester
    Director of Business Intelligence
    LPA Software Solutions
    ------------------------------



  • 4.  RE: Jupyter Notebooks using R Kernel question - cannot install a package

    Posted Wed September 08, 2021 07:27 AM
    Just a quick follow up to this post:

    IBM Support has acknowledged that the issue I'm seeing is a bug in the 11.2.0 version of Jupyter Notebooks.  A fix is targeted for the 11.2.1 release.

    Rich

    ------------------------------
    Richard Chester
    Director of Business Intelligence
    LPA Software Solutions
    ------------------------------