How to set up `CPPFLAGS` with `cpp11::cpp_source`

Open
#246 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, r

Research direction

Start with the cpp11::cpp_source entry point and the documented behavior of local Makevars files versus ~/.R/Makevars. Reproduce how CPPFLAGS are currently supplied, then document the supported setup and confirm that the explanation covers the reported local Makevars case.

Written by the indexing model from the issue text.

Description

Sorry if obvious, but I cannot figure out a way to provide compiler flags to cpp_soruce besides modifying the ~/.R/Makevars. A local Makevars file is not picked up.

Dominant language
C++
Stars
224
Forks
52
PR merge metrics
No merged PRs in 30d

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.

More from r-lib/cpp11

All issues in r-lib/cpp11

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.