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

use rownames to check installed packages and ensure stringi installed… #535

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

pretendWhale
Copy link
Contributor

This PR attempts to fix two issues related to R testing:

  1. recently we received a report of the testthat library not being installed correctly. Upon examination, it appears that checking installed.packages() is sufficient, because installed.packages() also lists dependencies in some rows, which can include testthat. So the R tester skipped installation. This is fixed by checking rownames(installed.packages()), which returns only the names of installed packages.

  2. In production, the libraries were not installing in the expected order. This sometimes resulted in the program attempting to install tidyverse before stringi. But since stringi is a tidyverse dependency, and stringi requires specific configuration on ubuntu 22.04, this breaks the install process. Thus we ensure that stringi is always the first package installed.

@pretendWhale pretendWhale marked this pull request as ready for review July 22, 2024 20:41
Copy link
Contributor

@david-yz-liu david-yz-liu left a comment

Choose a reason for hiding this comment

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

This is good, please just update the CHANGELOG as well.

@david-yz-liu david-yz-liu merged commit 09f3ea3 into MarkUsProject:master Jul 23, 2024
13 checks passed
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