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

tabular() fails if not attached #30

Closed
fkohrt opened this issue Aug 22, 2024 · 1 comment · Fixed by #31
Closed

tabular() fails if not attached #30

fkohrt opened this issue Aug 22, 2024 · 1 comment · Fixed by #31

Comments

@fkohrt
Copy link

fkohrt commented Aug 22, 2024

When running the following code...

tables::tabular(extra ~ group * mean, data = sleep)

...I get the following error:

Error in labelSubset(subset = as.integer(as.factor(group)) == 1L, label = "group") : 
  could not find function "labelSubset"

Only attaching the package resolves the issue:

library(tables)
tabular(extra ~ group * mean, data = sleep)
@dmurdoch
Copy link
Owner

A fix for this is in tables 0.9.31, which has just been accepted on CRAN.

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.

2 participants