rstudio / rstudio/packrat

packrat install.packages does not respect options("configure.args") settings

Open
#181 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
409
Forks
89
PR merge metrics
No merged PRs in 30d

Description

On my Mac I have homebrew installed outside of /usr/local. This usually works fine with the exception of rgdal. rgdal requires the following configure args:

options(configure.args=list(rgdal=c('--with-proj-include=/opt/boxen/homebrew/include','--with-proj-lib=/opt/boxen/homebrew/lib')))

I set these in my .Rprofile.

When I do a packrat::restore() rgdal gets built without the benefit of these options and hence fails.

Contributor guide

No contributing guide indexed for this repository

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 packrat::restore() through package installation and how options("configure.args") is read for rgdal. Reproduce the Mac/Homebrew case described in the issue, then verify that restore passes the configured arguments to the package build and completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.