GithubHelp home page GithubHelp logo

Comments (3)

U-R-dev avatar U-R-dev commented on June 4, 2024 1

I am also suffering from the same 'rlang' version problem: I cannot load the 'furrr' package that depends on rlang >= 1.0.2.
As a temporary workaround, I could update the 'rlang' package after unloading all dependent packages, and was able to run the 'furrr' package without problems:

# check rlang version at the start
packageVersion('rlang')
[1] ‘1.0.1# load furrr package after install.packages('furrr')
library(furrr)
Loading required package: future

Error: package or namespace load failed forfurrrin loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 namespacerlang1.0.1 is already loaded, but >= 1.0.2 is required
... (snip)

# re-install rlang
install.packages('rlang')
Installing package into/usr/local/lib/R/site-library’
(aslibis unspecified)

# check re-installed rlang version
packageVersion('rlang')
[1] ‘1.1.3# unload rlang and all dependent packages
unloadNamespace('IRkernel')
unloadNamespace('IRdisplay')
unloadNamespace('repr')
unloadNamespace('pillar')
unloadNamespace('ellipsis')
unloadNamespace('vctrs')
unloadNamespace('lifecycle')
unloadNamespace('htmltools')
unloadNamespace('rlang')

# load re-installed rlang
library(rlang)

# load furrr package again, and it works fine
library(furrr)
Loading required package: future

from colabtools.

JanNehyba avatar JanNehyba commented on June 4, 2024

Same problem:

options(repos = c(CRAN = "https://cloud.r-project.org/"))
install.packages("rlang")
library(rlang)
packageVersion("rlang")

Output:

Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)

Error in value[[3L]](cond): Package ‘rlang’ version 1.0.1 cannot be unloaded:
 Error in unloadNamespace(package) : namespace ‘rlang’ is imported by ‘ellipsis’, ‘pillar’, ‘vctrs’, ‘lifecycle’, ‘htmltools’ so cannot be unloaded

Traceback:

1. library(rlang)
2. tryCatch(unloadNamespace(package), error = function(e) {
 .     P <- if (!is.null(cc <- conditionCall(e))) 
 .         paste("Error in", deparse(cc)[1L], ": ")
 .     else "Error : "
 .     stop(gettextf("Package %s version %s cannot be unloaded:\n %s", 
 .         sQuote(package), oldversion, paste0(P, conditionMessage(e), 
 .             "\n")), domain = NA)
 . })
3. tryCatchList(expr, classes, parentenv, handlers)
4. tryCatchOne(expr, names, parentenv, handlers[[1L]])
5. value[[3L]](cond)
6. stop(gettextf("Package %s version %s cannot be unloaded:\n %s", 
 .     sQuote(package), oldversion, paste0(P, conditionMessage(e), 
 .         "\n")), domain = NA)

from colabtools.

silasbergen avatar silasbergen commented on June 4, 2024

Well, within the past hour, the kernel seems to have updated to the point that rlang version 1.1.3 is the default installed version, and ggplot2 version 3.4.4 (2nd-to-last most recent version) is installed. Don't know what happened to cause the kernel to revert back to an ancient version of rlang/tidyverse, but it seems to be okay now?

from colabtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.