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

Only pass environment into glue #346

Merged
merged 3 commits into from
Oct 23, 2024
Merged

Only pass environment into glue #346

merged 3 commits into from
Oct 23, 2024

Conversation

kylebaron
Copy link
Contributor

@kylebaron kylebaron commented Oct 23, 2024

Summary

glue 1.8.0 was recently released and is now insisting that .envir argument to glue() is really an environment. pmtables was sometimes passing a list. This was always happening through this gluet() helper I wrote to use <> rather than {} to glue stuff into latex code. This has been fixed now. Also issuing an informative error message in case gluet() ever gets non-environment. And added a regression test specifically for gluet().

I also noticed some minor documentation issues that came up, presumably with new roxygen2 version; these also have been addressed in this PR as well.

Reference to changes in glue
https://glue.tidyverse.org/news/index.html#glue-180
tidyverse/glue#308
tidyverse/glue#317

@barrettk @graceannobrien

@kylebaron kylebaron requested a review from kyleam October 23, 2024 12:03
Roxygen: list(markdown = TRUE)
VignetteBuilder: knitr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, dropping this line makes sense because pmtables doesn't carry/package any vignettes under vignettes/. (There are some vignettes, but those are in inst/vignette/, which is not included in the package.)

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 this pull request may close these issues.

2 participants