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

Add source="github" in install_latest() #441

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

Conversation

strengejacke
Copy link
Member

Fixes #439

R/install_easystats.R Outdated Show resolved Hide resolved
Comment on lines +58 to +59
} else if (insight::check_if_installed("pak")) {
pak::pkg_install(paste0("easystats/", packages), dependencies = FALSE)
Copy link
Member

Choose a reason for hiding this comment

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

This would skip the version printing that the two other methods have. Any chance this can done later in the function so that version numbers of packages to update are still printed?

Also, if pak is not installed then this branch is ignored and the rest of the function runs. We should error if source = "github" and pak is not installed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree with the printing, that also came to my mind.
But if pak is not installed, check_if_installed() errors.

@etiennebacher etiennebacher changed the title add source="github"? Add source="github" in install_latest() Jan 10, 2025
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.

add source="github"?
2 participants