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

assume() is broken (urgent) #546

Closed
VectorPosse opened this issue Oct 22, 2024 · 4 comments
Closed

assume() is broken (urgent) #546

VectorPosse opened this issue Oct 22, 2024 · 4 comments

Comments

@VectorPosse
Copy link

I'm teaching a stats class, and the code for the assume() function appears to be deeply broken. Practically every chapter of material starting from today through the rest of the semester relies on assume() working, so I'm hoping someone has the bandwidth to take a look at this ASAP.

Here is a reproducible example:

library(openintro)
heart_transplant %>%
     specify(response = survived, success = "alive") %>%
     hypothesize(null = "point", p = 0.5) %>%
     assume(distribution = "z")

Here is the error I'm seeing:

Error in eval(call("force", as.symbol(paste0("..", x)))) : 
  argument "..2" is missing, with no default

And R version info (we're using Posit Workbench on a locally maintained server):

platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          4                           
minor          4.0                         
year           2024                        
month          04                          
day            24                          
svn rev        86474                       
language       R                           
version.string R version 4.4.0 (2024-04-24)
nickname       Puppy Cup                   
@echasnovski
Copy link
Collaborator

I am afraid I can not reproduce (although I am on 4.4.1 version). Maybe try updating (or completely reinstalling) packages?

@simonpcouch
Copy link
Collaborator

Just did a manual trigger of our checks that test infer (including assume()) against CRAN versions of packages and looks like the package is fine.

That said, it does look like a version of the glue package from a few years ago had that eval(call("force" line that shows up in your error. I would start with trying to update that package, restarting R, and checking whether the error goes away!

@VectorPosse
Copy link
Author

Yes, updating glue did the trick. Thank you so much for getting to this so promptly. My students would thank you too, but now their homework assignment can be completed in time for class tomorrow, so they don't get the day off that they were hoping for. :-)

Y'all are awesome. I really appreciate the help.

Copy link

github-actions bot commented Nov 8, 2024

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants