Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.8%) to scientific vocabulary
Keywords from Contributors
documentation-tool
tidy-data
Last synced: 10 months ago
·
JSON representation
Repository
A collection of LLM assistants for R
Basic Info
- Host: GitHub
- Owner: simonpcouch
- License: other
- Language: R
- Default Branch: main
- Homepage: https://simonpcouch.github.io/chores/
- Size: 15.3 MB
Statistics
- Stars: 130
- Watchers: 3
- Forks: 12
- Open Issues: 4
- Releases: 2
Created almost 2 years ago
· Last pushed about 1 year ago
Metadata Files
Readme
Changelog
Contributing
License
Code of conduct
Support
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# chores
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://CRAN.R-project.org/package=chores)
[](https://github.com/simonpcouch/chores/actions/workflows/R-CMD-check.yaml)
The chores package provides a library of ergonomic LLM assistants designed to help you complete repetitive, hard-to-automate tasks quickly. After selecting some code, press the keyboard shortcut you've chosen to trigger the chores addin (we suggest `Ctrl+Cmd+C`), select the helper, and watch your code be rewritten.
> This package used to be called pal.
## Installation
Getting started with chores takes three steps.
**1)** Install the chores package like so:
``` r
install.packages("chores")
```
You can install the developmental version with:
``` r
pak::pak("simonpcouch/chores")
```
**2)** Then, you need to configure chores with an [ellmer](https://ellmer.tidyverse.org/) model. chores uses ellmer under the hood, so any model that you can chat with through ellmer is also supported by chores. To configure chores with ellmer, set the option `.chores_chat` to any ellmer Chat. For example, to use Claude, you'd write `options(.chores_chat = ellmer::chat_anthropic())`, possibly in your `.Rprofile` so that chores is ready to go every time you start R. To learn more, see the [Getting started with chores](https://simonpcouch.github.io/chores/articles/chores.html) vignette.
**3)** Chore helpers are interfaced with the via the chores addin. For easiest access, we recommend registering the chores addin to a keyboard shortcut.
**In RStudio**, navigate to `Tools > Modify Keyboard Shortcuts > Search "Chores"`---we suggest `Ctrl+Alt+C` (or `Ctrl+Cmd+C` on macOS).
**In Positron**, you'll need to open the command palette, run "Open Keyboard Shortcuts (JSON)", and paste the following into your `keybindings.json`:
```json
{
"key": "Ctrl+Cmd+C",
"command": "workbench.action.executeCode.console",
"when": "editorTextFocus",
"args": {
"langId": "r",
"code": "chores::.init_addin()",
"focus": true
}
}
```
The analogous keybinding on non-macOS is `Ctrl+Alt+C`. That said, change the `"key"` entry to any keybinding you wish!
Once those steps are completed, you're ready to use helpers with a keyboard shortcut.
## Example
Chore helpers are created automatically when users interact with the chores addin. Just highlight some code, open the addin, begin typing the "chore" of your chores and press "Return", and watch your code be rewritten:
```{r}
#| label: addin-gif
#| echo: false
#| fig-alt: "A screencast of an RStudio session. An .R file is open in the editor with a function definition. The user selects various subsets of the function and, after selecting from a dropdown menu, the helper assistant converts erroring code and drafts function documentation."
knitr::include_graphics("https://raw.githubusercontent.com/simonpcouch/chores/refs/heads/main/inst/figs/addin.gif")
```
As-is, the package provides ergonomic LLM assistants for R package development:
* `"cli"`: [Convert to cli](https://simonpcouch.github.io/chores/reference/cli_helper.html)
* `"testthat"`: [Convert to testthat 3](https://simonpcouch.github.io/chores/reference/testthat_helper.html)
* `"roxygen"`: [Document functions with roxygen](https://simonpcouch.github.io/chores/reference/roxygen_helper.html)
Users have also contributed a number of helpers for a wide range of tasks--see `vignette("gallery", package = "chores")` for a gallery of user-contributed helpers!
That said, all you need to create your own chore helper is a markdown file with some instructions on how you'd like it to work. See `prompt_new()` for more information, and [palpable](https://github.com/simonpcouch/palpable) for an example chores extension package.
## How much do helpers cost?
The cost of using helpers depends on 1) the length of the underlying prompt for a given helper and 2) the cost per token of the chosen model. Using the cli helper with Anthropic's Claude Sonnet 3.5, for example, [costs something like](https://simonpcouch.github.io/chores/reference/cli_helper.html#cost) \$15 per 1,000 code refactorings, while using the testthat helper with OpenAI's GPT 4o-mini would cost something like \$1 per 1,000 refactorings. Chore helpers using a locally-served LLM are "free" (in the usual sense of code execution, ignoring the cost of increased battery usage).
Owner
- Name: Simon P. Couch
- Login: simonpcouch
- Kind: user
- Location: Baltimore, MD, USA
- Company: Posit PBC (formerly RStudio)
- Website: www.simonpcouch.com
- Twitter: simonpcouch
- Repositories: 8
- Profile: https://github.com/simonpcouch
he/him - statistical software @posit-pbc
GitHub Events
Total
- Create event: 2
- Release event: 1
- Issues event: 16
- Watch event: 41
- Delete event: 1
- Issue comment event: 8
- Push event: 38
- Pull request review event: 1
- Pull request event: 7
- Fork event: 2
Last Year
- Create event: 2
- Release event: 1
- Issues event: 16
- Watch event: 41
- Delete event: 1
- Issue comment event: 8
- Push event: 38
- Pull request review event: 1
- Pull request event: 7
- Fork event: 2
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| simonpcouch | s****h@g****m | 158 |
| Emil Hvitfeldt | e****t@g****m | 2 |
| Hannah Frick | h****k | 1 |
| Corneel | 6****H | 1 |
| Christophe Dervieux | c****x@g****m | 1 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 18
- Total pull requests: 17
- Average time to close issues: 13 days
- Average time to close pull requests: about 24 hours
- Total issue authors: 5
- Total pull request authors: 6
- Average comments per issue: 0.72
- Average comments per pull request: 0.53
- Merged pull requests: 16
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 18
- Pull requests: 17
- Average time to close issues: 13 days
- Average time to close pull requests: about 24 hours
- Issue authors: 5
- Pull request authors: 6
- Average comments per issue: 0.72
- Average comments per pull request: 0.53
- Merged pull requests: 16
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- simonpcouch (13)
- durraniu (2)
- hadley (1)
- lcolladotor (1)
- jrosell (1)
Pull Request Authors
- simonpcouch (11)
- njtierney (2)
- maelle (1)
- EmilHvitfeldt (1)
- cderv (1)
- hfrick (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 276 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: chores
A Collection of Large Language Model Assistants
- Homepage: https://github.com/simonpcouch/chores
- Documentation: http://cran.r-project.org/web/packages/chores/chores.pdf
- License: MIT + file LICENSE
-
Latest release: 0.2.0
published about 1 year ago
Rankings
Dependent packages count: 27.2%
Dependent repos count: 33.5%
Average: 49.2%
Downloads: 87.0%
Maintainers (1)
Last synced:
11 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/live-api.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/pr-fetch v2 composite
- r-lib/actions/pr-push v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- cli * imports
- coro * imports
- elmer * imports
- glue * imports
- miniUI * imports
- rlang * imports
- rstudioapi * imports
- shiny * imports
- knitr * suggests
- rmarkdown * suggests
- testthat >= 3.0.0 suggests
- withr * suggests