Using R in Jupyter


#1

Hi Support,

First, please could you update the Microsoft R Open to the current or 3.5 version. It is currently running on 3.4.3 which is affecting the ability to load library/packages on Jupyter notebook

I was trying to load an R library package on Jupyter notebook and I encountered this error message

Error: package or namespace load failed for ‘ggplot2’:
package ‘scales’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
Traceback:

  1. library(ggplot2, lib.loc = “/home//R/x86_64-pc-linux-gnu-library/3.4”)
  2. tryCatch({
    . attr(package, “LibPath”) <- which.lib.loc
    . ns <- loadNamespace(package, lib.loc)
    . env <- attachNamespace(ns, pos = pos, deps)
    . }, error = function(e) {
    . P <- if (!is.null(cc <- conditionCall(e)))
    . paste(" in", deparse(cc)[1L])
    . else “”
    . msg <- gettextf(“package or namespace load failed for %s%s:\n %s”,
    . sQuote(package), P, conditionMessage(e))
    . if (logical.return)
    . message(paste(“Error:”, msg), domain = NA)
    . else stop(msg, call. = FALSE, domain = NA)
    . })
  3. tryCatchList(expr, classes, parentenv, handlers)
  4. tryCatchOne(expr, names, parentenv, handlers[[1L]])
  5. value[3L]
  6. stop(msg, call. = FALSE, domain = NA)

#2

I am installing ggplot2 again: