Use base-R standalone files for functionality copied in Positron?

Open
#78 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

Start by reviewing the functionality adapted in Ark PR 868, especially the standalone files help.R and llm_tools.R. Compare those files with the corresponding Positron tool-call functionality and investigate whether base-R standalone files can be managed with usethis. Done means the approach is defined and the affected functionality has a single maintainable implementation.

Written by the indexing model from the issue text.

Description

It might be helpful if the functionality we copied over to Ark for tool calls in Positron was implemented in base-R only standalone files. This way the functionality is updated and tested in one place, usethis can be used to manage updates (https://usethis.r-lib.org/reference/use_standalone.html), and we wouldn't need to adapt the code to base R when we need to update.

You can see which functions we adapted in https://github.com/posit-dev/ark/pull/868 (files help.R and llm_tools.R).

This is just a suggestion, I'd understand if you think this would be impractical or too constraining on your end.

Dominant language
R
Stars
150
Forks
13
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/btw

All issues in posit-dev/btw

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.