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

Limit assess_size_codebase to only .R files #363

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

Gotfrid
Copy link
Contributor

@Gotfrid Gotfrid commented Feb 14, 2025

Closes #362

Description

This change is related to assess_size_codebase metric, when it is being assessed on a local source code. It currently fails for packages that have .rda files inside the R folder. Examples: acss.data, bayesPop.

The proposed change is to only list files with .R extension.

Addresses #362 

## Description

This change only list files with R source code. An example of a "valid" package where this metric fails is [bayesPop](https://cran.r-project.org/web/packages/bayesPop/index.html) because it has an RDA file inside the R directory.
@Gotfrid Gotfrid changed the title Update assess_size_codebase.R Limit assess_size_codebase to only .R files Feb 14, 2025
@Gotfrid Gotfrid requested a review from dgkf February 21, 2025 12:36
@Gotfrid
Copy link
Contributor Author

Gotfrid commented Feb 21, 2025

@dgkf I bumped the version and added an entry to the NEWS. Please check if this is done correctly.

Copy link
Collaborator

@dgkf dgkf left a comment

Choose a reason for hiding this comment

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

lgtm thanks for the fix

@dgkf dgkf merged commit 66eaee1 into master Feb 21, 2025
10 of 11 checks passed
@dgkf dgkf deleted the Fix-assessment_size_codebase branch February 21, 2025 13:07
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.

riskmetric::pkg_assess is stuck for packages without source code
2 participants