Refactor Example Data: R-CMD check error #118 #120
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description:
Summary
This pull request addresses an error encountered in
R-CMD check
due to improperly formatted example data within thereverseOperonSeq
function. The primary motivation for this change was to ensure that the function operates without errors and meetsR-CMD check
requirements.Motivation
The
R-CMD check
error was raised when running the function due to issues in the example data, which did not meet required standards. This PR aims to resolve that issue by refactoring the example data and adjusting the function to handle potential edge cases within genomic contexts.Adjustments Made
reverseOperonSeq
to handle diverse genomic contexts, specifically to handle cases with>
,<
, and=
.test-reverse_operons.R
to verify that the function handles various genomic context formats without errors..lintr
file for consistent linting and usedstyler
to format the R scripts, ensuring compliance with style guidelines.Related Issues
This pull request resolves issue #118 and provides additional unit tests to prevent similar issues in the future.
Also, if you haven't already, please use
pre-commit run --all-files
to help check your files using this project's pre-commit configuration.Pre-commit checks will automatically run as part of opening this pull request and we seek to ensure all checks pass before merging changes.
-->
What kind of change(s) are included?
Checklist
Please ensure that all boxes are checked before indicating that this pull request is ready for review.