Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation is broken with older (<1.0) rlang versions #356

Open
pettyalex opened this issue Mar 25, 2024 · 0 comments · May be fixed by #357
Open

Installation is broken with older (<1.0) rlang versions #356

pettyalex opened this issue Mar 25, 2024 · 0 comments · May be fixed by #357

Comments

@pettyalex
Copy link

Hello,

A few of my team ran into this and lost some time today, it looks like patchwork depends on on_load being exposed from the package rlang, but that function was only added in rlang 1.0. We all had rlang 0.4.4 installed, and because patchwork doesn't specify that it requires 1.0 or greater it tries to use old rlang, and fails.

This should be an easy fix: specify rlang >= 1.0.0.

The failure looks something like this:

> install.packages('ComplexUpset')
Installing package into ‘/belowshare/vumcshare/data100t1/home/alex/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependency ‘patchwork’

trying URL 'https://mirrors.nics.utk.edu/cran/src/contrib/patchwork_1.2.0.tar.gz'
Content type 'application/x-gzip' length 3289733 bytes (3.1 MB)
==================================================
downloaded 3.1 MB

trying URL 'https://mirrors.nics.utk.edu/cran/src/contrib/ComplexUpset_1.3.3.tar.gz'
Content type 'application/x-gzip' length 4772080 bytes (4.6 MB)
==================================================
downloaded 4.6 MB

* installing *source* package ‘patchwork’ ...
** package ‘patchwork’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in on_load({ : could not find function "on_load"
Error: unable to load R code in package ‘patchwork’
Execution halted
@pettyalex pettyalex linked a pull request Mar 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant