posit-dev / posit-dev/ark

Add support for meta-packages like `library(tidyverse)`

Open
#1,296 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: language server
Dominant language
Rust
Stars
337
Forks
32
Avg merge
8d 17h
Merged PRs (30d)
11

Description

Currently Oak doesn't understand that these packages attach other packages to the search path because these are not listed in Depends:: https://github.com/cran/tidyverse/blob/ddc25807d108573956185472213bcdfc17660204/DESCRIPTION#L17

Ideally we'd add support for a declare() annotation that describes what happens in .onAttach(): https://github.com/cran/tidyverse/blob/ddc25807d108573956185472213bcdfc17660204/R/zzz.R#L1. For now we can just hardcode the semantics for tidyverse and tidymodels.

Contributor guide

Open the contributing guide

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.

Research direction

Start with the linked tidyverse DESCRIPTION and R/zzz.R files to understand the missing attachment semantics, then locate Ark's package and search-path handling. Compare the proposed declare() annotation with hardcoded support for tidyverse and tidymodels; done means library(tidyverse) and library(tidymodels) expose their attached packages correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.