REditorSupport / REditorSupport/vscode-R

Add package's own `inst/include` with "Generate C/C++ configuration"...

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

Nobody has claimed this yet.

feature-request
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Is your feature request related to a problem? Please describe.
Currently, when invoking "R package: Generate C/C++ configuration", every package
that is stated in LinkingTo is added in the includePath path via <pkg>/inst/include,
in that you run something akin to system.file("include", package = <pkg>).

What would be very nice, is if you tested if the current package had a inst/include, and
added that to the includePath in .vscode/c_cpp_properties.json.

I wouldn't add src/include, as that seems excessive, but it is also an option.

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 by tracing the implementation of the “R package: Generate C/C++ configuration” command and its generation of .vscode/c_cpp_properties.json; inspect how LinkingTo packages contribute include paths. Done means the current package’s inst/include is included when present, without adding src/include.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.