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

Problem with how enquo() is copied from rlang #19

Open
romainfrancois opened this issue Nov 15, 2021 · 0 comments
Open

Problem with how enquo() is copied from rlang #19

romainfrancois opened this issue Nov 15, 2021 · 0 comments

Comments

@romainfrancois
Copy link
Contributor

When testing package bruceR, we get this error that is caused by jmvcore:

> checking examples ... ERROR
  Running examples in ‘bruceR-Ex.R’ failed
  The error most likely occurred in:
  
  > ### Name: Alpha
  > ### Title: Reliability analysis (Cronbach's alpha and McDonald's omega).
  > ### Aliases: Alpha
  > 
  > ### ** Examples
  > 
  > # ?psych::bfi
  > Alpha(bfi, "E", 1:5)  # "E1" & "E2" should be reverse scored
  Warning: replacing previous import ‘ggplot2::enquo’ by ‘jmvcore::enquo’ when loading ‘jmv’
  Error in jmvcore::enquo(vars) : object 'rlang_enquo' not found
  Calls: Alpha -> <Anonymous> -> <Anonymous> -> <Anonymous>
  Execution halted

1 error x | 0 warnings ✓ | 0 notes ✓

This is because enquo is defined as follows here:

#' rlang::enquo
#' Simplifies things so packages overriding Analysis don't need
#' to have rlang in their imports.
#' This is intended for use by classes overriding Analysis
#' @param arg the argument to enquote
#' @return the quosure
#' @export
enquo <- rlang::enquo

And the way enquo() is defined in rlang has changed from:

> jmvcore::enquo
function (arg) 
{
    .Call(rlang_enquo, substitute(arg), parent.frame())
}
<bytecode: 0x7fc3523b86f8>
<environment: namespace:rlang>

to

> rlang::enquo
function (arg) 
{
    .Call(ffi_enquo, substitute(arg), parent.frame())
}
<bytecode: 0x7fc36a4d24a0>
<environment: namespace:rlang>

When installing jmvcore from a binary that can compiled against an older version of rlang we get an older version of rlang::enquo().

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