Skip to content

Remotes cleanup refactoring, code cleanup & bug fixing - #28

Merged
averissimo merged 59 commits into
trainingfrom
training-cleanup
Aug 28, 2023
Merged

averissimo merged 59 commits into
trainingfrom
training-cleanup

Conversation

@averissimo

@averissimo averissimo commented Aug 1, 2023 •

Copy link
Copy Markdown
Contributor

Overview of changes description

note: I've added some comments in the code below for additional context.

  • desc_remotes_cleanup() refactoring just as we discussed
    • I couldn't remove Remotes while keeping functionality
  • Adds tests
  • Code reorganization
    • Moved solve_* functions to own file
    • Moved some functions around (especially to desc_util.R, for description-based functions)
    • local_description() moved to R/
      • Useful function to create better examples for developers
  • when resolving packages: Replaces remote_github_ref to CRAN when resolving packages if that version (rule) exists on CRAN
    • For example: formatters (>= 0.5.1) isn't on CRAN, so it keeps the github_ref (instead of replacing with non-existent CRAN versions)
  • Fix Bioconductor lack of published date bug (see comment below)
    • parse_ppm_url() fallback to lastest from PPM if snapshot date cannot be resolved
  • Adds utility map_key_character to avoid repetitive vapply()

Comment thread tests/testthat/helper.R Resolved
Comment thread R/check.R Resolved
Comment thread R/get_ref.R Resolved
Comment thread R/utils.R Resolved
@averissimo averissimo changed the title Training cleanup Remotes cleanup refactoring, code cleanup & bug fixing Aug 1, 2023
@averissimo
averissimo marked this pull request as ready for review August 1, 2023 14:40
@averissimo
averissimo requested a review from pawelru as a code owner August 1, 2023 14:40
Comment thread .pre-commit-config.yaml Resolved
Comment thread R/desc_utils.R Resolved
Comment thread R/get_ref.R Resolved
Comment thread R/get_ref.R Resolved
Comment thread R/get_ref.R Resolved
@averissimo
averissimo requested a review from pawelru August 23, 2023 09:56
Comment thread DESCRIPTION Resolved
@pawelru

pawelru commented Aug 24, 2023

Copy link
Copy Markdown
Contributor

This is awesome. Thank you! I have approved this. Let's merge it to the training branch and then the training to the main. I will let you decide when you want to pull the trigger.

@averissimo
averissimo merged commit cfabadf into training Aug 28, 2023
@averissimo
averissimo deleted the training-cleanup branch August 28, 2023 13:48
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