-
Notifications
You must be signed in to change notification settings - Fork 36
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
Move develop_polars.R away from inst #627
Draft
sorhawell
wants to merge
6
commits into
main
Choose a base branch
from
move_develop_polars.R
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0cd1edf
move file
sorhawell 5bb30e7
update dev docss
sorhawell 68bef6f
drop submit_polars
sorhawell eb214d9
add readme
sorhawell 6da1d6d
chatbot polish readme
sorhawell 0030de9
Merge branch 'main' into move_develop_polars.R
etiennebacher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Developer Scripts | ||
|
||
This repository houses opinionated scripts to simplify the development process. For CI workflows, | ||
it is recommended to exclusively use the `./Makefile`. | ||
|
||
## `source(styler_utils.R)` | ||
|
||
The `styler_utils.R` script is derived from `styler` and has been optimized for parallel execution. | ||
It utilizes `git diff`, `git status`, and identification of untracked files to determine which new | ||
files require styling. | ||
|
||
- `style_files()`: Automatically formats all modified files in parallel in a few seconds. | ||
- `style_entire_pkg()`: Restyles any file in the repository. Primarily used for chore pull requests | ||
to reset all files. | ||
|
||
## `source(develop_polars.R)` | ||
|
||
The `develop_polars.R` script provides opinionated presets for building polars during development, | ||
addressing 95% of use cases. It is unnecessary to run this script in a new R session, as all | ||
environment variables and loaded packages are reverted upon completion. | ||
|
||
- `load_polars()`: Invokes `extendr::document()` with preset environment variables and loaded | ||
packages. | ||
- `build_polars()`: Initiates `R CMD install` with preset environment variables. | ||
- `check_polars()`: Executes `devtools::check()` with preset environment variables and loaded | ||
packages. Additionally, it reuses the Rust cache and target files, even when the `check` command | ||
moves the working directory. The script deletes the temporary check directory afterward. | ||
- `run_all_examples_collect_errors()`: Calls `pkgload::run_example()` and captures all errors. | ||
Useful for running all examples at once without the need to manage restarts in case of errors. | ||
|
||
Feel free to modify the formatting and details according to your preferences and the specific needs | ||
of your project. |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the file to
README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason these contents are here instead of DEVELOPMENT.md?