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

version_tooltip works again in dev mode: auto #2694

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Jul 4, 2024

fix #2692. I see that some PR was made a while back (#1786), so I am only supporting this if dev mode is auto

It works (with my test example)

image

Copy link

github-actions bot commented Jul 4, 2024

@olivroy olivroy requested a review from hadley July 4, 2024 13:08
@@ -122,7 +122,13 @@ data_template <- function(pkg = ".", depth = 0L) {

# Development settings; tooltip needs to be generated at render time
out$development <- pkg$development
out$development$version_tooltip <- version_tooltip(pkg$development$mode)
if (identical(pkg$development$mode, "devel")) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
if (identical(pkg$development$mode, "devel")) {
if (identical(pkg$development$mode, "devel") && identical(pkg$meta$development$mode, "auto")) {

Copy link
Member

Choose a reason for hiding this comment

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

Do you mean ||?

@olivroy olivroy changed the title Version tooltip version_tooltip works again in dev mode: auto Jul 4, 2024
@olivroy olivroy marked this pull request as ready for review July 4, 2024 13:24
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.

version_tooltip doesn't seem to work as expected.
2 participants